If the player collides with an obstacle the cursor no longer follows the correct angle

I created a crosshair that rotates around the player but I realized that if the player collides with a wall it no longer follows the cursor and reverses the angle to the opposite side.
miiiiiiiiiiiiiiiii
same thing happens with weapons that follow the direction of the cursor

1 Like

It doesn’t look like anything in these events would cause that. Is the Center point of Playerhitbox the actual center of the sprite?

Maybe a GIF of the issue would help… or some more events to look at, such as ones related to wall collision

the mistake was that the game is played in a different layer than the base layer and by setting the weapon rotation event this way everything seems to work
Screenshot 20

1 Like