My current code works, however... its based on the direction the player is looking.
So a player overlaps a spring bell, gets pushed back. This part works fine
But if it collides another spring bell while being pushed backed it does not reverse the effects, as the direction of the player it the same it keeps getting pushed back the same direction, instead of the opposite.
How do I solve this issue?
Please note I don't want to turn the player 180' when pushing. This would solve it, buts it's not the way I want the springs to work.ACTOR StarBounce : CustomInventory 23463
{
+NOGRAVITY
Inventory.maxamount 1
States
{
Spawn:
SPRG A 4 Bright
Loop
Pickup:
SPRG B 0 A_Playsound ("StarPing")
SPRG B 2 ThrustThing(angle*256/360+128, 50, 1, 0)
Fail
}
}