Is there any way to make a working sword that points at your cursor?

Hi, im trying to make a gungeon like game but i can’t find out how to make a working weapon, like a gun you can hold that points at your cursor, a sword that doe the same, etc. Is there any way i could do this? Attacher doesn’t work for some reason.

1 Like

Yes, use the Move to get the mouse’s position and put that into the X and Y of the Point At behaviors. If the angle is too much, put it through an Expression behavior that modifies the X and Y positions that go into the Point At. This is kinda confusing so if you need any more help feel free to @ me :llama:

1 Like

@CodeAlpaca Hi, is there a way to make it so the character doesn’t rotate with it? I’m trying to make it look like they are holding it, like if you use the attacher part. Only problem with the attacher is it won’t function and removes all collision.

1 Like

Have the sword get the plays X and Y position, then have it set that as its position. That way you keep collision

Alright, thank you i’ve been stuck on this for a while.

1 Like