Jiggmin's Village
[PR2 Bug] Infinte direction bug - Printable Version

+- Jiggmin's Village (https://jiggmin2.com/forums)
+-- Forum: Mt. Olympus (https://jiggmin2.com/forums/forumdisplay.php?fid=11)
+--- Forum: Bugs and Suggestions (https://jiggmin2.com/forums/forumdisplay.php?fid=37)
+--- Thread: [PR2 Bug] Infinte direction bug (/showthread.php?tid=1176)



Infinte direction bug - Battlealvin2009 - 25th September 2018

This might have been posted before, but this bug happens in editor mode. When I typed something in the Textbox while holding any arrow keys, then clicking elsewhere while still holding the arrow keys, the screen will then move infinitely to that direction. 

The bug will persist outside of editor mode and even affect gameplays where my character would only move in that direction. Logging out and logging in will not fix the issue. Only by refreshing the page does the bug gets fixed.


RE: Infinte direction bug - Stxtics - 25th September 2018

All you have to do is press the button that is causing the issue to fix it (e.g. right arrow key). Also I believe this issue is to do with flash player and not pr2.

Actually nevermind I thought this issue also occurred in races. However I still don't think it can be fixed without the source code. (fixing it can be done in the way i said though which is pressing the key that is causing the issue)


RE: Infinte direction bug - gemj - 25th September 2018

oh yeah I remember this happening to me a ton of times
I think it stopped after a while and as long as you aren't in 25% zoom, it won't be that catastrophic


RE: Infinte direction bug - bls1999 - 26th September 2018

This is a client-side fix, which means it can't be done since the source code cannot be changed. :/


RE: Infinte direction bug - Zelante - 26th September 2018

An easy solution though, is to click the address bar, click onto the game again and press the same key that was pressed right before it froze on input. Usually works for me Tongue


RE: Infinte direction bug - Stxtics - 24th February 2019

This can be fixed now Smile


RE: Infinte direction bug - Camer the Dragon - 24th February 2019

Does pressing the key in the direction which you're moving fix it?


RE: Infinte direction bug - Stxtics - 24th February 2019

(24th February 2019, 4:27 PM)Camer999 Wrote: Does pressing the key in the direction which you're moving fix it?

Yeah, I think so. This was a while ago so I can't remember exactly but Bls said if the client could be edited it could be fixed so I bumped it.


RE: Infinte direction bug - Camer the Dragon - 24th February 2019

(24th February 2019, 4:28 PM)Stxtics Wrote: Yeah, I think so. This was a while ago so I can't remember exactly but Bls said if the client could be edited it could be fixed so I bumped it.

Yeah it happened to me a few days ago with the down key and that's what I did to fix it
it was during a race though


RE: Infinte direction bug - bls1999 - 24th February 2019

So the way the client handles key presses is some disco method different from the stock AS3 event listeners. I'm gonna have to look into how to make it figure out when the client loses focus since it's a little bit more complicated than:

Code:
discoKeyThing.addEventListener(FocusEvent.FOCUS_OUT, doTheThing);



RE: Infinte direction bug - Lego-man945 - 24th February 2019

Code:
If player goes offscreen:
go to X,Y,Z

Not sure how this works tbh
maybe add another sprite or something