DemoProductions / shmup

3 stars 2 forks source link

add snap functionality #71

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

Added a toggle in the inspector to enable / disable snapping. The SnapTo will snap to the nearest value defined. For example 1 will snap every 1 (0, 1, 2), 2 will snap every 2 (0, 2, 4), and .5 will snap every .5 (0, .5, 1). SnapTo effectively determines the distance between snap points.

ghost commented 8 years ago

very useful