How to detect if a sprite is facing up or down?

I want to know if a sprite is facing upwards (anywhere higher than straight left or right), or if it's facing downwards (anywhere lower than straight left or right). How could I make a block that might detect this?

In general, you just need to check the direction of your sprite and report up,left,down or right depending on the value of direction

left = 270, right =90
Anything less than 90 or greater than 270 means it's pointing upwards
Anything greater than 90 and less than 270 means its pointing down

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.