Forum Discussion

Rajuchocolate's avatar
Rajuchocolate
Community Member
2 years ago

Road safety game

Hi, I have been trying to build a road safety game in Storyline where I can increase and decrease the speed of the car. If the speed of the car exceeds 60km/hr, a pop-up will be shown. If anyone has any idea related to this, can surely share it here. 

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    How do you increase/decrease the car's speed? With a slider? Dial?

  • AmosJoseph's avatar
    AmosJoseph
    Community Member

    Certainly! Building a road safety game in Storyline with speed control and pop-ups is an interesting project. Here's a step-by-step guide to help you achieve this:

    • Import or draw a car object on your Storyline slide.
    • Name the car object for easy reference.
    • Create a variable to track the car's speed (e.g., CarSpeed).
    • Create a trigger to initialize CarSpeed to 0 when the timeline starts.
    • Add buttons for increasing and decreasing the car's speed.
    • Create triggers to adjust the CarSpeed variable when these buttons are clicked.
    • For example, when the "Increase Speed" button is clicked, add a trigger to add a specific value to CarSpeed.

    Regards: mtmis punjab