I am trying to add a crossbow to my game, but I have an issue

I am trying to add a crossbow to my game, but I have an issue. I am trying to anchor the bow to my player after pick up and angle towards the cursor. My issue is that the bow is not remaining attached to my character and I can’t figure out how to make the arrow angle towards my cursor.
The screenshots do not show my final attempt they are for reference

Hi,

You are attaching the crossbow to your player at the beginning of the scene. This happens - as the condition name suggests - only once. When you move the player, the crossbow will just stay at the same place. So if you want to keep the “change position”-action (you could also use the sticker extension instead), you have to move the action in an event block without condition.

Just one more thing. You probably want to rotate the crossbow and the arrows in direction of the mouse cursor. For this you have to align both of them from left to right before you load them in the editor. Exactly like:

Otherwise the sprites won’t be properly rotated.

2 Likes

Ok I will try this method thank you for the input.

1 Like