How To Create A Game Like Chrome Dino Using Scratch
How To Create A Game Like Chrome Dino Using Scratch
Pre Defined
Codes STAGE
SPRITE
Coding Area
Step 5 : Choose any Random Backdrop of Your Choice :
Step 6 : At first we will fixed the Position of Sprite ,so that whenever the Flag is clicked
our Sprite will move to the initial position . For that we have to write a Command using
Pre Defined Codes as shown :
Step 8 : After all this now we have to move the rock towards the sprite1 so that it can
jump over it :
For this first we will fix the initial position of the rock at the extreme right corner as we
have fixed the position of the sprite1 so
At first we will choose the when Clicked option from pre defined codes and
then
Choose go to x : … y : … option
Now to Move the rock towards the Sprite1 we will again
Choose when Clicked option from pre defined codes and then
Choose go to x: … y: … option and set the position of x and y axis same as the
value of the sprite1 and
Choose the option to Glide so that the rock can move towards the sprite1 and
now,
Place these two command under Forever option from pre defined codes so that
it can repeat until our Sprite1 touches the rock.
Now to over the game we will again :
Choose when Clicked option from pre defined codes and then
Choose the option wait until touching variable and change variable to sprite1
and then,
Choose stop all option from pre defined codes to stop all the activities
All the Steps are Shown Below