This is ballsbounce. a2w where I have dragged more things into world This is ballsbounce.a2w where I have dragged more things into world.my first method. Note that the methods for volleyBall are under volleyBall and the methods for tennisBall are under tennisBall etc.
Now I have in world. my first method, three other methods: world Now I have in world.my first method, three other methods: world.startup, world.process and world.wrapup.
This is world.startup which positions the balls.
This is world.wrapup which brings the balls back to the ground.
This is world.process which does the bounce method associated with each object (each ball).
To create a variable, I click on create new variable and give the variable a name and a starting value.
This loop starts an index at 1 and adds 1 each time stopping before it reaches 3.
will see the options to set or increment.
This shows an if using a random number.
Random is a function.