August 3, 2020

soltveit.org

..Geekish..

Stencyl – Moving the mouse cursor is slowing down my game

slowing down my game

In Stencyl Moving the mouse cursor is slowing down my game. Why is that? Here is what I found and how I fixed it from slowing down my game.

I noticed all animation slows down when moving your mouse cursor over the flash player game. There was only a few lines of code in the game and just a few events. So I tried to look over the code, but couldn’t find anything that would slow down the game from just moving the mouse cursor around.

After some google searches, I found another guy who had the same problem using Action Script 3 on a Mac. I was also developing on a Mac. Then I tried to run my game in a web browser instead and the game ran perfectly.

So if you have the same problem, try running your game in your browser instead.

Happy game developing!