Wiki
Clone wikiCore / kidcomment
When we finished introducing Spritey our code 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.
Put two dashes in front of Spritey like this:
--sprite("Planet Cute:Character Boy",100,100)
It should turn green.
Now play.
Spritey is gone!!
--
is a way to make something a comment
A comment is something that you can read that does not do anything when you play.
Like: -- Do your drawing here
To bring him back take out the -- and Spritey will be back.
Now we can do a different kind of Hide and Seek.
Let's play Hide and Seek another way
Updated