Useful Scratch Lines of Code

Here are some games you can try out:

Elkins:

I.J.

E.L


K.L.


H.T

L.G.

R.W.

R.I.

A.T.

S.M

C.C

N.T.

B.W.

T.A.

D.T.

R.A.

H.G.

R.C.
On computer

L.B
On computer

M.M.
On computer

G.P
On computer

L.C
On computer

G.H.
On computer

B.V.
On computer
----------------------

A possible way to start. This starts lives at 5 at places the dog in the bottom corner. Remember to go to Variables and make a variable called Lives




---------------------------------------------
This is a simple wat to keep score based on how long the sprite stays alive.



-----------------------------------------------------------------------------------------

A good starting position and size.


-----------------------------------------------------------------------------------------

 Walking animation: To make it look like the Sprite is walking.




-----------------------------------------------------------------------------------------
Jumping: The code to make the sprite jump smoothly.



-----------------------------------------------------------------------------------------
A good starting point for the rocks.



-----------------------------------------------------------------------------------------
Code to make the rocks move (Similar code can be used to make the clouds move).


-----------------------------------------------------------------------------------------
Code to lose a life each time the dog hits the rock.




-----------------------------------------------------------------------------------------
If you are keeping track of points, this code keeps track of a high score.




-----------------------------------------------------------------------------------------
This is a basic code that switches to a Game Over screen if lives get to 0.




-----------------------------------------------------------------------------------------
Shrink Command. Optional if you wanted to use it.