Pages: 1
Topic closed
How do I make my sprite move, but stay in the grid?
I read all the topics and didn't understand them. its in Pathing AI and I really need it now.
Can I have a picture of scripts on tinypic, not forum bloccks, ty.
Offline
Gveradux wrote:
How do I make my sprite move, but stay in the grid?
I read all the topics and didn't understand them. its in Pathing AI and I really need it now.
Can I have a picture of scripts on tinypic, not forum bloccks, ty.
This is how:
Offline
Um well, I'm too lazy to upload a photo, so I'll try and explain it this way. First, how many grid spaces do you want? The easiest to work with are 20x20 squares or 40x40 squares, but you can work with the numbers. Ok now this is where understanding will probably be lost: you need these blocks: mouse x, divide block, multiply block, and round block. Now set it up so that it reads: {round (mouse x/number you want)}x the same number you want. Do the same thing, except with the mouse y. then set your x position to the first, and your y position to the second.
Offline
ScratchReallyROCKS wrote:
Gveradux wrote:
How do I make my sprite move, but stay in the grid?
I read all the topics and didn't understand them. its in Pathing AI and I really need it now.
Can I have a picture of scripts on tinypic, not forum bloccks, ty.This is how:
http://img715.imageshack.us/img715/1116/scriptpic.gif
Oh, good, you're not as lazy as me, just remember you can change up the number 20, but keep the number the same for your x and the same for your y.
Offline
I love it when people reference my work
Here's how I explained it: http://scratch.mit.edu/forums/viewtopic … 12#p454112
Offline
Topic closed
Pages: 1