Discuss Scratch

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
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.

change x by ((x momentum)/((zoom)/(100))

You would do the same for the y too
ScratchJack2010
Scratcher
70 posts

Zoom is speeding up the player! Oh Noes!

Ok Thanks!
IngsheKingKarl
Scratcher
77 posts

Zoom is speeding up the player! Oh Noes!

Thanks Luffy

Powered by DjangoBB