Hello, I’m wondering how to make a shield. I want the shield to block only the direction of the cursor. I want the shield to block the enemies bullets. I tried attaching the shield but it didn’t work since attached items don’t have collisions
Summoning @CodeAlpaca. Maybe you know how to make this?
Spawn a physical object instead. Then use the player X and displace it depending on which direction the player is facing.
So spawn the object.
Message the object which direction the player is facing.
Use that so you know what displacement. So you’d have its position at A+B
If you’re facing right, it’ll be a positive value like 16.
If you’re facing left, it’ll be a negative value like -16
Can you show me a picture?
It’s a top down game some I want the shield to be rotating in the direction of the cursor.
Use JR’s orbit example. The same way you’d make a gun rotate around the player
Uhhh, let me see.
I can’t find his example.
How can I use this?
You use that to rotate the shield towards the cursor. So you get the angle from the player to the cursor, and use that as the angle for the shield