GameSalad

Flip Actor by Touch

DaddyMagicDaddyMagic Posts: 30Member
edited July 2017 in Help Wanted

*UPDATE: finally got this working myself, below is the correct rules in case anyone else needs this.

I'm trying to flip an actor based on which side of the actor you touch. I know how to do this by using keyboard input but if using Touch input I can't seem to get this going. I'm using:

RULE
if self.motion.linearVelocityX < 0
DO
CHANGE ATTRIBUTE
self.graphics.flipHorizontally TO true
ELSE
CHANGE ATTRIBUTE
self.graphics.flip horizontally TO false

Comments

Sign In or Register to comment.