Movement sensor
I need to check the speed when the player reach the target. If the speed is too high, for example greater than 2, something will happen. If the speed is less than 2 another thing will happen. If the speed is greater than 3, the player will die.
The problem is that, when the player reach the target, I deactivate the movement, so the speed greater than 2 will not be registered. Only less than 2. How can I set this up correctly?
-
Have the sensor update a variable. This way when the player enters the trigger zone the variable will be defined. Then check that variable to enable what you want.
-
If you check in the same moment you reset the speed, it should work as expected.
-
I got it to work. ?
請登入寫評論。