Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Coordinates
- Fryman2599
-
Scratcher
100+ posts
Coordinates
In https://scratch.mit.edu/projects/708870913 I am trying to make an easier way to place objects by converting players xy to grid xy, my only problem is that the player PX and PY variables change by 15 and not by 1's like the coordinates do. Starting point is 14, 14 Starting player is 420, 420
Last edited by Fryman2599 (June 27, 2022 22:29:18)
- Fryman2599
-
Scratcher
100+ posts
Coordinates
divide PX and PY by 15?420 (spawn) divided by 15 is 28 not 14
- idkhow2type
-
Scratcher
100+ posts
Coordinates
the code says the variable changes by 15 but in reality it seems to change by 30 for every key press, try dividing by 30
Last edited by idkhow2type (June 27, 2022 23:15:34)
- Discussion Forums
- » Help with Scripts
-
» Coordinates

