These events make the car turn when you are holding down the left or right cursor keys, but dependant on speed. When the car is moving slowly, there is a slow timer event that turns the car slowly. It works the same for when the car is moving quickly, there is a fast timer event which turns the car quickly.
Very slow
Very slow turning will turn the car while the speed is very low.
Make an event:
-Repeat while Right arrow is pressed
+Speed of Car > 0
+Speed of Car < 5
+Every 00"-50
.....-Set direction to Dir(Car) - 1
Make another event:
-Repeat while Left arrow is pressed
+Speed of Car > 0
+Speed of Car < 5
+Every 00"-50
.....-Set direction to Dir(Car) + 1
Slow
Slow turning while the speed is low.
Make an event:
-Repeat while Right arrow is pressed
+Speed of Car > 5
+Speed of Car < 20
+Every 00"-25
.....-Set direction to Dir(Car) - 1
Make another event:
-Repeat while Left arrow is pressed
+Speed of Car > 5
+Speed of Car < 20
+Every 00"-25
.....-Set direction to Dir(Car) + 1
Medium
Faster turning while the speed is steady.
Make an event:
-Repeat while Right arrow is pressed
+Speed of Car > 20
+Speed of Car < 40
+Every 00"-10
.....-Set direction to Dir(Car) - 1
Make another event:
-Repeat while Left arrow is pressed
+Speed of Car > 20
+Speed of Car < 40
+Every 00"-10
.....-Set direction to Dir(Car) + 1
Fast
Fast turning while the speed is high.
Make an event:
-Repeat while Right arrow is pressed
+Speed of Car > 40
+Every 00"-05
.....-Set direction to Dir(Car) - 1
Make another event:
-Repeat while Left arrow is pressed
+Speed of Car > 40
+Every 00"-05
.....-Set direction to Dir(Car) + 1
You could add more turning speeds if you want to, but I think that's enough.
I hope you may find this useful!
Return to Phizzy Games - Home.