Check the character rotation

Hello!

So I’ve been trying to get this to work for a few hours now, and I can’t seem to get it right.
I made it possible to rotate this cow, but now I want to check the rotation of the cow. So if he lands and he’s rotated let’s say more than ±60 degrees I run the game over thing. There is a bunch of nodes for “Set Rotation” but none for “Get Rotation”.

So my question is: How can I check the rotation of this cow? (and get it as a variable to later check if it’s larger than 60)

Thanks!
//rymdnisse

Hey, there definitly should be a Node to get the Rotation of the Actor. Can you show me the Event Graph and the Context Menu when you search for the Node?

Alright, so this is used for the rotation, and I did find a node called “Get Actor Rotation”. But I’m rotating the sprite, not the actor.

http://i.imgur.com/P6BXYq4.png

I tried setting the actors rotation instead of the sprite, but then this happened, it seems to flip around at the middle: - YouTube

Do you have any ideas why this might be happening? or if it is possible to check the rotation of the sprite?
Thanks!

After a lot of trial and error I finally got it working, Thank you for your help! :slight_smile:

I never worked with Sprites and Flipbooks, but both Components have Get and Set World Rotation nodes:

http://puu.sh/eqbQB/9600251c9c.png

http://puu.sh/eqbPv/01549ac735.png

Hey, seems like my comment disappeared:

I never worked with Flipbooks etc, but both have a Get and Set World Rotation:

http://puu.sh/eqbPv/01549ac735.png

http://puu.sh/eqbQB/9600251c9c.png

EDIT: Ok (: i hope i was able to help you.