How do I fix inconsistent angles across objects/ parts of my game **OR** fix clamp/angle function of cannon

Damn i did not notice it thx

These were causing it

And fix to it was to add green

And put yellow under green as sub events

Basically it was my mistake
Cause i had there red before
Which is change angle of sword (cannon) to sword angle to cursor (so make it follow cursor)
ONLY if cursor is in front of ship
Or to say it simply
If cursor is right from red line

Run red events
BUT yellow events were running always
I needed to add green
And green means make it only works if cursor is left from red line
So now yellow do not interfere red and vice versa

BTW ultra easy to fix once you see actual values
I do not remember which one was it cause i always confuse @Keith_1357 and @MrMen
But one of you taught me to always check stuff and not to assume stuff
When i was trying to change animation of object based on angle of movement with pathfinding

And thank you for that
As you see it did pay off

I found it
Keith is guilty here
Just peak of simplicity

And so let me repeat
Sometimes you just need to butcher your way trough
Do something as simply as humanly possible
And your problem will solve itself

1 Like