From now on, we will address these cars as 'Traffic cars'.Ĭreate a new Sprite object Tree which has 'tree.png' for its animation. We can name them Blue, Gray, Green and Pink which would have the image 'blue-car.png', 'gray-car.png', 'green-car.png' and 'pink-car.png' for their respective animations. These will be the objects that we need to dodge. Our next step will be to add the 4 cars as different Sprite objects. Similarly, add a new Sprite object Highway which consists of the image 'highway.png' as the animation. To add an animation to the object, click on the + symbol beside Click to add an animation.Īdd the image named 'car.png' as animation and click on the APPLY option. Animations are containing images that are displayed on screen for Sprite objects. In our case, use the field to set the name to Car. It's a good idea to give a descriptive name to each object so that you can understand what they are when dealing with them in events. The object is called NewObject by default - you can see the name at the top of the dialog. This will be followed by the appearance of a dialog box. Choose the Click to add an object option from the Objects panel on the right side.Ĭhoose Sprite from the Add a new object pop-up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |