I Need Help: Moving Cursor

Miraiyume

  • Posts: 2
Hello everyone.

I'm trying to make a game, it's a kind of a Vampire Survivor like, I wanted to create a rotating cursor around the player that follow the mouse to help at aiming some weapon but it's not going well:-\

I succeed making the cursor rotating around it, following the "Rotate around a point" behavior and I succeed making it facing the mouse but, it constantly moving around without stoping where the mouse is.

There must be a misscalculation from me
I tried with an "if" to stop it from rotating but it didn't work :( .

Here is the code(some attribute have non-english word like persoX  that mean characterX or distanceSouris that mean distanceMouse):

Miraiyume

  • Posts: 2
Edit: I Fixed it by using Facing the mouse behavior and changing the sprite, so the center became the center of the character making it a 128/128 sprite