How can I make an enemy face main character
-
I keep moving things around with get object flip and setting flips, using if behavior but I just can’t seem to figure it out.
-
What are you trying to achieve: make the object face its movement direction, toggle its direction, or flip its collision shape?
Get Graphic Flip only reads the graphic’s current X and Y orientation. It does not change anything. Connect your event to Get Graphic Flip, pass the Flip X or Flip Y output into an If, then connect the matching Set Graphic Flip behavior after the If. Make sure both behaviors target the same object.
One important detail: Set Graphic Flip changes only the artwork, not the collision shape. If the collision body must turn too, use Scale To and set the relevant scale to a negative value.
Could you share a screenshot of your behavior chain and describe the result you want? That will make it easier to show the exact connections.
-

This is what I’ve tried. If the main sprite is flipped the “get graphic flip” should have a 1 input right?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login