Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Zoom is speeding up the player! Oh Noes!
- ScratchJack2010
-
Scratcher
70 posts
Zoom is speeding up the player! Oh Noes!
When the game is zoomed in with the scroll wheel, the player moves faster, but I can't seem to figure out what the problem is.
If anything, it would probably be in the Player sprite, unless both the background and mobs are just moving too fast.
Game Link: https://scratch.mit.edu/projects/1289735902/
Turbowarp Link with Better Pen: https://turbowarp.org/1289735902?hqpen&offscreen
If anything, it would probably be in the Player sprite, unless both the background and mobs are just moving too fast.
Game Link: https://scratch.mit.edu/projects/1289735902/
Turbowarp Link with Better Pen: https://turbowarp.org/1289735902?hqpen&offscreen
- codderuzzu
-
Scratcher
34 posts
Zoom is speeding up the player! Oh Noes!
In the player move script, you have it so that the x and y are changed by the momentum*zoom, when really you should divide the momentum by the zoom.
You would do the same for the y too
change x by ((x momentum)/((zoom)/(100))
You would do the same for the y too

- Discussion Forums
- » Help with Scripts
-
» Zoom is speeding up the player! Oh Noes!
