Page 1 of 1

How to move by tile?

PostPosted: Fri Dec 28, 2007 9:41 pm
by code4242
Does any one know how to make a charactor move in tiles instead of freely?

Re: How to move by tile?

PostPosted: Sat Dec 29, 2007 1:54 am
by MrScience101
Oh that's tough. The easiest might be to have the player actor move to the center of the tile whenever it collides with a tile. Just create an event when a collision happens that moves the actor to the center of the collision tile.

Re: How to move by tile?

PostPosted: Sat Dec 29, 2007 7:47 am
by Fuzzy
If your tiles are 32x32 then use keydown "right arrow" -> script editor -> x=x+32;