To hide an object:
hide <object> <"name">
The advanced form of the hide
hide <object> <"name"> with visual effect <effect> <speed> with <sound>
where
<object> can be any object type: (button, graphic, image, etc)
<name> is the name you gave the object: ("mybox", "rocket", etc)
<effect> is the special effect to use:
• checkerboard - Desktop / Web / iOS
• venetian blinds - Desktop / Web / iOS
• iris close | iris open - Desktop / Web / iOS
• zoom close | zoom in | zoom open | zoom out - Desktop / Web / iOS
• wipe up | wipe down | wipe right | wipe left - Desktop / Web / iOS
• dissolve
• push up | push down | push right | push left
• reveal up | reveal down | reveal right | reveal left - Desktop / Web / iOS
• shrink to bottom | shrink to center | shrink to top - Desktop / Web
• stretch from bottom | stretch from center | stretch from top - Desktop / Web
• scroll up | scroll left | scroll down | scroll right - iOS / Android
• reveal up | reveal left | reveal down | reveal right - iOS / Android
• curl up | curl down - iOS
• flip left | flip right - iOS.
<speed> is how fast it disappears: (slow, normal, fast)
<sound> is a wav file to play: ("poof.wav") hide image "diamond" with visual dissolve
hide graphic "myTree" with visual curl up with sound "yippee.wav"
hide button "box" with visual open barn door slow
There are many more options, look them up in the Dictionary Tool on the Edit Palette
To show them again:
show <object> <"name">
show <object> <"name"> with visual effect <effect>
show <object> <"name"> with visual effect <effect>
where the options are the same as the hide command above
The wait command allows you to pause the action or do something for a short time. It has the forms:
wait [for] <number> <time> [with messages]
wait until <condition> [with messages]
wait while <condition> [with messages]
wait for messages
wait until <condition> [with messages]
wait while <condition> [with messages]
wait for messages
where
<number> is any number (size, color, visible, etc)
<time> can be any of the following: (seconds, secs, ticks - 1/6 of a sec, milliseconds, millisecs)
<condition> can be any expression that evaluates to "True" or "False"
[with messages] - allows other things to happen on the screen, otherwise the program stands still
for example:
wait for 2 seconds
wait for 20 millisecs
wait until the mouse is up
wait while the seconds < timeLimit
You could do something like:
wait while the seconds < timeLimit
You could do something like:
wait while the seconds < timeLimit
You could do something like:
set the visible of button "ghost" to "True"
wait for 1 sec