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

#1 2012-08-19 16:40:59

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Grid movement

Can you note according to a grid e.g a1 takes you 3 steps to get to b3


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#2 2012-08-20 08:39:10

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Grid movement

Bump


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#3 2012-08-20 08:41:48

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Grid movement

Sorry not note move


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#4 2012-08-20 11:45:06

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: Grid movement

I'm not good with scratchblocks so:
[When flag clicked]
|forever|
||If <right arrow pressed>|
||[glide .1 sec to x: (x position)+(10) y: (y position)]

And you can repeat that for each direction.

Last edited by sccar3 (2012-08-20 11:45:46)


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#5 2012-08-20 11:52:58

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Grid movement

when gf clicked
forever
 go to x: ((round ((mouse x) / (3))) * (3)) y: ((round ((mouse y) / (3))) * (3))
end
Use that to snap to a grid.


http://i50.tinypic.com/312u714.jpg

Offline

 

#6 2012-08-21 00:48:26

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Grid movement

What do you mean by snap to a grid


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

Board footer