An angle will rarely be an integer value.
edit: it's not an integer value thing (still a valid point though), but check the capx
The word "integer" means whole number, right? Please correct me if I am wrong.
But if I am correct, then I am setting it to one in the bottom event, and then checking for that same exact same number immediately after.
In the top event, it shouldn't matter, since it's a range anyway, so a decimal number would still fall under it.
Ok, Try something like this :
("side" is a instance variable )
your question is not clear. if it is not the answer, give a little description
Firstly, why is the instance variable even necessary? It appears to affect nothing.
To clarify what I want to do, I want the bee to face left or right, however it also chases enemies, goes upward diagonally if there are no enemies, and therefore, can go in any possible angle. I want whether it is mirrored to be determined by the closed possibility, based roughly on which half of the circle radius the direction falls. With the way I tried to do it, it worked almost always, except when it was going up-left diagonally (not quite sure about possibilities for specific numbers other than 225) And I want it to be "angle of motion" for bullet behavior. As far as I can tell, the regular "angle" variable is tied to the image being rotated, and makes it go al upside down and stuff, and I really don't want that. Also, I just tried exactly what you showed me (with aforementioned bullet behavior variable instead of angle). And what it did was, only ever mirror if it faced exactly dead left. Nothing is making sense anymore.
And so you know, the bee already moves exactly the way I want. The trouble is ONLY the mirroring, and getting the conditions for such to recognize the angle correctly.