So I've been trying to make the weapon rotate just like in the streets of rage series. If you're holding a weapon in streets of rage and an enemy hits you, the weapon goes up rotating then falls to the floor. Also, it rotates when you drop the weapon on your own without getting hurt.
I have this code written:
Upon Pressing "S":
Play Collision Box Flag 1 on : Deactivate Group "Bat" - Turn Player Collision Box Flag 1 off- Turn Bat flag 1 On
Bat Internal Flag 1 is on: Set Y position to Y position ("Bat") + 10 - Set angle to Angle ("Bat") + 22 ( Quality 0)
Negate Bat is overlapping Floor:
Bat Internal Flag 1 is on:
Bat is overlapping Floor: Set internal flag 1 off ("Bat") - Set angle to 1 ( Quality 0)
Now, as soon as i press S to drop the weapon it does a half rotation and the weapon gets stuck in the middle of the air. The reason is because as soon any part of the weapon hits the floor, the weapon will stop and set to angle 1. I just need a little help here, if anyone can give me any tips on how to accomplish this, ill be thankful.