determine if actor has rotate
freneticz
SwedenMember, PRO Posts: 774
What is the best way to do this.......i want to count backflips and frontflips of an actor
Comments
One idea is to check for self.Rotation%360=0 since every 360 degrees is a full rotation. Unfortunately, unless your actor is rotating REALLY slowly, it won't necessarily hit 0. I've attached a demo that uses a range of mod() values to attempt to correctly count at higher speeds.
Demo here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
thx, going to check it out
Homepage: freneticgamez.eu/
https://play.google.com/store/apps/developer?id=FreneticGamez