Frequently Asked Questions

Questions on Moving Questions on Jumping Questions on Power-Ups Questions on Shooting Questions on Inserting / Spawning Objects Questions on Gameover Conditions Questions on Number of lives Questions on Sharing My Game


Questions on Moving

Question M1: How do I make the rabbit stay inside the canvas?
Answer 1:
When the rabbit reaches a border, it stops.
Answer 2:
When the rabbit reaches a border, it turns around.

Question M2: How do I make the fox stay inside the walls?
Question M3: How do I make the fox not cross the walls?
Assume that the fox is initially placed in an area surrounded by walls.
Answer 1:
When the fox touches a wall, it stops.
Answer 2:
When the fox touches a wall, it turns around.


Questions on Jumping

Question J1: When a rabbit jumps, how do I make the rabbit land on a cheese?
Answer:
When the rabbit lands on a cheese, it stops.


Questions on Power-Ups and Power-Ups with Time

Question P1: Can I make the controlled object shoot only for 5 seconds after it touches a special object?
Answer:
When [obj1] touches [obj2], [obj1] becomes empowered for 5 seconds and [obj2] disappears.
When space bar is pressed and [obj1] is empowered, [obj1] shoots up.

Question P2: Can I make an object explode only when it is red and touches another object?
Answer:
When [obj1] touches [obj3], it becomes red for 10 seconds.
When a red [obj1] touches [obj2], it explodes.


Questions on Shooting

Question S1: Can I shoot out objects instead of bullets?
Be default, bullets are used. To use other objects instead of bullets, 'insert' is used:
Answer 1:
When space bar is pressed, [obj] inserts a [obj2].
The [obj2] moves up at 5 pixels per frame.
When [obj2] reaches a border, it blows up.
Answer 2:
When space bar is pressed, [obj] inserts a [obj2].
The [obj2] start out moving toward [obj3] at 5 pixels per frame.
When [obj2] reaches a border, it blows up.
When [obj2] collides with [obj3], they both blow up.

Question S2: How do I make non-controlled players shoot out objects instead of bullets?
Answer:
When [obj1] sees [obj2], it becomes ready_to_shoot for 0.1 second.
When [obj1] is ready_to_shoot, it inserts a [obj3].
The [obj3] start out moving toward [obj3] at 5 pixels per frame.
When [obj3] reaches a border, it blows up.
When [obj3] collides with [obj4], they both blow up.

Question S3: How do I make red dinos not explode when they are shot?
Answer: (Assume that regular dinos will explode when they are shot, and only red dinos will not explode)
When a dino that is not red is shot, it explodes.
Note: You do not need to describe what does not die / explode. You simply need to describe what characters explode.


Questions on Inserting and Spawning Objects

Question I1: Can I spawn new objects after they disappear?
Answer:
There is a [obj1]. The [obj1] is invisible.
When a [obj3] is gone, [obj1] is notified for 0.1 second.
When [obj1] is notified, it inserts a [obj3].
Note: you can also make [obj1] move around, so that new [obj3] inserted will be at a random location each time.


Questions on Gameover Conditions

Question G1: How do I end the game when all apricots and carrots are gone?
Assume there are 10 apricots and 15 carrots, and the controlled character is rabbit.
Answer 1:
When the rabbit touches an apricot, the apricot disappears and the score adds 1 point.
When the rabbit touches a carrot, the carrot disappears and the score adds 1 point.
When score is 25, game over.
Answer 2: (If you are using score for something else already, you can use a variable instead. Remember that variables must be associated with a character.)
When the rabbit touches an apricot, the apricot disappears and the x1 of the rabbit adds 1.
When the rabbit touches a carrot, the carrot disappears and the x1 of the rabbit adds 1.
When the x1 of the rabbit is 25, game over..


Question on Number of Lives

Question H1: How can the player have more than one life?
Answer:
The num_lives of the rabbit is initially 3.
When a fox touches the rabbit, the fox disappears and the num_lives of the rabbit decreases by 1.
When the num_lives of the rabbit is less than 1, game over.

NOTE: whenever a fox touches the rabbit, the num_lives of the rabbit decreases, but the game will not pause and/or re-start. The game will continue.


Question on Sharing My Game

Question H1: How do I share my game to the Community Showcase?
Answer:
When

Then, a blue SHARE button will appear to the right of the buttons (Execute, Save, See Directory, etc.). Click on the SHARE button to share your game. Your game will be added to the Community Showcase if it is not similar to any of the games in the Showcase.
For additional help, please refer to the Tutorials.