drag circle inside squares (ticking movement)
3absh
Member Posts: 601
I want to drag a circle (chip) inside squares in a way where the chip moves instantly not smoothly
for examply if i drag the chip from number 1 to 2 it will instantly appear at 2.
How do i constrain an actor's x and y position to a "ticking" movement, like every 30 pixels ro so
Comments
i know it requires a MOD and Floor function, but i can't seem to wrap my head to figuring out a suitable equation
Maybe this will help?
https://forums.gamesalad.com/discussion/56974/free-snap-to-grid-tutorial-template-some-community-love
GSHelper also has a few demos:
http://gshelper.com/product/firemaplegames-snap-to-grid-demo/
http://gshelper.com/product/grid-base-movement-with-gamesalad/
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User