How to move actor like in GRID
Jaxter
Member, PRO Posts: 398
I need with two buttons move actor ( with animation between start and end position) to left and right for example 100pix, like in chess game, how can i do it ?
here is example: http://idea-lab.lv/citi/example.jpg
here is example: http://idea-lab.lv/citi/example.jpg
Comments
I think you need to constrain X, Y of the object to this
floor (( self.Position.X/Y + 50 ) / 100 ) * 100
http://photics.com/toolbox
The tally counter uses interpolate for movement.
If position.x between 0 and 150
change positino.x to 100
If position.x between 150 and 250
change positino.x to 200
If position.x between 250 and 350
change positino.x to 300
I can't get to the game link right now, but do a search for "move by spawn" in the shared projects section in GS.
www.idea-lab.lv/citi/borders.png ( just spawn in 3 positions and stay on bouth corners