Making my brake run in a loop without error

DripTheSeawing
Fri, 21 Jun 2024 18:51:37 +0000
Game Development

Im trying to make a mechanic for my marble racing game where you can brake to slow yourself rapidly to allow for tighter turns. Every time I try to test out the code I get a “Infinite loop” error. Is there any way I can work around this so it wont give me this error while still doing what I want it to do?

Here’s my code for braking

5 posts - 3 participants