top of page
באננר100.png
joybanner.png

23

Driving with joystick

MAN.png

What will you learn on this page?

  • Build a game: Create a game where a vehicle moves on a road using a joystick.
     

  • Use the "message" block: Learn how to use the "message"
    block for creating and managing the game.


     

  • Use the "Start on Bump" block: Learn how to
    detect when the vehicle touches the edge of the road.


     

  • Use the "Start on Tap" brick: Learn how to interact with
    the vehicle using the mouse cursor.

     

  • Use the "Go to Page" block: Learn how to move
    between different scenes in the game.

לבנת מסר למשק.png
נוגעבדמותקופץ.png
דמות נוגעת בדמותקופץ.png
מעבר שקף.png
action.png

Draw a road in the graphic editor, using squares for the spacing between the lines, as shown in the picture

image.png
image.png
action.png

Draw a car in the graphic editor and name the sprite "Car"

image.png
action.png

Draw the following sprites in the editor

image.png
action.png

Position the sprites as they are shown in the picture

מיקום כביש.png
action.png

Build the script for the car

רכב.png
action.png

Build the scripts for each of the sprites

image.png
גוימעלה.png
גוימינה.png
גוישמלה.png
גוימטה.png
גויסיבובשמאלה.png
גויסיבוב ימינה.png
action.png

Add slide number 2

image.png
action.png

Added to the background the subtitles "You touched the side of the road" "Touch me to start over"

שקף2.png
action.png

Add the script to the "Tic" sprite on slide 2

תסריט טיק.png
action.png

Run the script by clicking on the green flag

duhxyhe vpgkv.gif
bottom of page