Hi. The example I used had Keyboard is down to lower the speed.
I added touch controls and used Is touching object for a brake button. But it does not do anything if I touch and hold the button. But it should break as long as I touch it? Its no single trigger?
Example Code:
+ Keyboard: ↓ is down
-> glob: Set roadSpeedMod to clamp(Self.roadSpeedMod + 256×dt,Self.roadSpeed÷6,(Self.roadSpeed÷4)×3)
+ Touch: Is touching BrakeButton
-> glob: Set roadSpeedMod to clamp(Self.roadSpeedMod + 256×dt,Self.roadSpeed÷6,(Self.roadSpeed÷4)×3)