Now that we have a collision mask, we can have our kart respond differently, depending on where it is driving. When on the road, the kart will increase throttle up to full speed. When hitting the sandbox it will be slowed down, and hitting the walls is even worse. The kart will bounce back and completely lose momentum.
Let's build these responses with a few scripts.
We will add a series of script instructions to the
player1 sprite. We will assemble the instructions first, then place the script segment at the right spot in the existing script: