00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Keyboard lag in Flash 4

565 Views | 4 Replies
New Topic Respond to this Topic

Keyboard lag in Flash 4 2023-08-12 19:19:33


I'm not sure how it works but it just does


I made a test movie from one of Tom's old Flash tutorials (https://files.catbox.moe/dtjj8n.swf) use the left and right arrow keys notice the split second lag?


Then, I opened my game with the same keyboard controls, and it suddenly has 0 lag? (the lag is reversed to when you let go of the arrow keys) not sure how it was done, but it works anyways, if you have questions I'll try to answer them.


iu_1049089_18031507.png

Response to Keyboard lag in Flash 4 2023-09-01 11:28:26


I'm most curious as to how you got your hands on Flash 4!

Response to Keyboard lag in Flash 4 2023-09-24 14:14:14


At 9/1/23 11:28 AM, MariaRenard wrote: I'm most curious as to how you got your hands on Flash 4!


I had it for a while

Response to Keyboard lag in Flash 4 2023-09-25 06:51:26


I'm more familiar with Flash 8. But if it is also actionscript 2. I may know a little bit.


I have heard that coding things with if/else methods tends to have a longer reaction time. May also be a bit slower if your action works on the release of your keystroke, instead of upon contact. So having it coded with an 'on' instead of 'on release' oughta make things swifter, I suppose. But not sure if that even applies, because I don't know how much different the actionscript worked, long before Flash 8.


But was there also any difference in playback? The first and second time you tested your swf? Did you use exactly the same flash player both times? Or did you test one in the browser with ruffle, and the other one testing it inside of Flash4 itself? Because that could have a different effect on performance.


But totally not an expert on actionscript, just know how to use some entry-level stuff.


I think @gimmick may be the best dude, to help you out on this, if you have a bit more speciffic information about your problem.

He's been quite knowledgeable and helpfull with oldschool actionscript problems in the past.

Response to Keyboard lag in Flash 4 2023-09-25 16:14:54 (edited 2023-09-25 16:15:30)


At 9/25/23 06:51 AM, Guidodinho wrote: I'm more familiar with Flash 8. But if it is also actionscript 2. I may know a little bit.

I have heard that coding things with if/else methods tends to have a longer reaction time. May also be a bit slower if your action works on the release of your keystroke, instead of upon contact. So having it coded with an 'on' instead of 'on release' oughta make things swifter, I suppose. But not sure if that even applies, because I don't know how much different the actionscript worked, long before Flash 8.

But was there also any difference in playback? The first and second time you tested your swf? Did you use exactly the same flash player both times? Or did you test one in the browser with ruffle, and the other one testing it inside of Flash4 itself? Because that could have a different effect on performance.

But totally not an expert on actionscript, just know how to use some entry-level stuff.

I think @gimmick may be the best dude, to help you out on this, if you have a bit more speciffic information about your problem.
He's been quite knowledgeable and helpfull with oldschool actionscript problems in the past.


to start off, it's only AS1 (well, almost...), and the lag was fixed when Flash 5 came out, though I stay on Flash 4 for the simplicity, if they added on releases to movieclips then, it probably would've been easier than having a button to do all of the controlling


there wasn't a difference in playback, I tried everything with the swf file and testing it within Flash 4 had the best performance, it's probably because of the shittiness of my computer currently that made the frame loop correctly instead of using a browser, and or recording it.