Is it possible to do bounce behavior without using the “Bounce” Function/Behavior?
My problem to that is it can only be used when the object has permanent force given. I want it a behavior the same with “Bounce” but can be used in instant so I can modify the speed of the object anytime by using variable MovementSpeed in the speed.
My initial idea is to store the RandomAngle and the Angle of the object itself.
Then, if the object collides to the wall, the RandomAngle will set to the current Angle + 180 so that it will go to the opposite direction.
Minimise the number of repeats you have. On screen you have 2 repeat for each Spinner event blocks. Combine them into 1.
Move the spinner away from the wall part that it’s collided with. Otherwise it may not move away from the wall with the next force that is applied, and stay there.
Put all the wall objects into a group and check for collision with, and move away from, that group.
Why are you setting RandomAngle = Angle + 180? What if angle is away from the wall object? Then it’ll force it back into the wall. I would have thought it should be RandomAngle = RandomAngle + 180
The object travels to upper right then goes backwards to lower left (red) which it was meant to go to lower right. (blue) I guess 180 isn’t the right number because it literally do the opposite movement which makes it move it’s path before (backwards) no matter what.