Wiki
Clone wikiCore / kiddorder
When we finished our last game of Hide and seek our code still looked like this.
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
end
-- This function gets called once every frame
function draw()
-- This sets the background color to black
background(0, 0, 0)
-- Do your drawing here
sprite("SpaceCute:Background",374,374)
sprite("Planet Cute:Character Boy",100,100)
end
Now let us hide Spritey a new way.
Flip the two sprite lines to they look like this.
sprite("Planet Cute:Character Boy",100,100)
sprite("SpaceCute:Background",374,374)
Now play.
Spritey is gone again!!
This time he's hiding behind the background.
To bring him back flip the line to thier orginal order and Spritey will be back.
Time to move Spritey around
Updated