This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-24 09:14:44

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

How do I make my sprite move, but stay in the grid

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

 

#2 2010-07-24 09:26:14

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How do I make my sprite move, but stay in the grid

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


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-07-24 09:26:21

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How do I make my sprite move, but stay in the grid

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.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2010-07-24 09:27:23

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How do I make my sprite move, but stay in the grid

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.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#5 2010-07-24 17:05:01

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do I make my sprite move, but stay in the grid

I love it when people reference my work  big_smile

Here's how I explained it: http://scratch.mit.edu/forums/viewtopic … 12#p454112

Offline

 

Board footer