Font size
WorksheetsGameMaker 3rd qtr
Total questions: 40
Worksheet time: 40mins
Sprites are
containers for holding images used in a game
containers for holding events used in a game
containers for holding actions used in a game
containers for holding objects used in a game
A single file that holds multiple images (often used to create animated sprites) is called a(n)
sprite sheet
sprite collection
image sheet
image collection
Onion skinning is used to
help create animated sprites
create transparent sprites
change image appearance
alter an image angle
You want to import all 4 directional images for an animated cowboy with a purple hat from this image. Set the Number of Frames to
(a)
You want to import all 4 directional images for an animated cowboy with a purple hat from this image. Set the Frames per Row to
(a)
You want to import all 4 directional images for an animated cowboy with a purple hat from this image. Set the Horizontal Cell Offset to
(a)
You want to import all 4 directional images for an animated cowboy with a purple hat from this image. Set the Vertical Cell Offset to
(a)
You need to remove a solid color background from a sprite so it will become transparent. In the Sprite Editor's toolbox you should use the
Magic Wand tool
Background tool
Selection tool
Color Picker tool
Which of the following statements is in the correct order?
Create a Sprite, Create an Object, Add an Event, Write Code for the action
Create an Object, Create a Sprite, Add an Event, Write Code for the Action
Create a Sprite, Create an Object, Write Code for the action, Add an Event
Create an Object, Create a Sprite, Write Code for the Action, Add an Event
Each copy of an object that is added to a room is called an
instance
object
image
asset
speed, hspeed, and vspeed are _________ variables
built-in
instance
local
global
spd, hsp and vsp are _________ variables
built-in
instance
local
global
You want the user to be able to hold the left arrow key to continuously move left - stopping when they let go of the key. You should use a _____________ event.
Key Down
Key Pressed
Key Held
Key Released
You want an event to fire one time no matter how long a key is held. You should use a _____________ event.
Key Down
Key Pressed
Key Held
Key Released
A Boolean variable holds
true or false
numeric data
whole word data
character data
To choose between 1 of 2 actions you would code
an IF/ELSE block
a CHOOSE block
a REPEAT block
an IF/THEN block
To draw images that represent the current number of lives remaining we used
an IF/ELSE block
a CHOOSE block
a REPEAT block
an IF/THEN block
Consider this statement: place_meeting(x, y+1, obj_wall)
The (x, y+1, obj_wall) part is the
parameter list
instructions
variable list
body code
Consider this statement: place_meeting(x, y+1, obj_wall)
This is looking for a wall object
1 pixel below the current position
1 pixel above the current position
1 pixel to the left of the current position
1 pixel to the right of the current position
Consider this code: audio_play_sound(snd_Click, 1, false);
The last parameter means the sound
will not loop
will loop
cannot be silenced
can be silenced
This line of code produces an error:
if (keyboard_check_pressed(vk_anykey)
How would you fix the problem?
Add one more close parenthesis to the end
Add open and close curly braces around the code below it
add a semicolon at the end
change if to IF
The first line of a Draw event is typically
draw_self();
draw_set_font();
draw_set_text();
draw_set_color();
A controller object is unique because it
does not have a sprite
requires a Draw event
does not require a Create event
can have 1 and only 1 instance
Consider this line of code:
draw_text(8, 20, "Number: " + string(global.num));
The first 2 parameters indicate the text will be drawn
on row 8 starting in column 20
on row 20 starting in column 8
8 times spaced 20 pixels apart
20 times spaced 8 pixels apart
Consider this line of code:
draw_text(8, 20, "Number: " + string(global.num));
"Number: " is the
label for the printed data
variable the data to be printed is currently held in
title used for a table of data being printed
data to be printed
You want to draw player lives across the bottom of the screen. The current number of lives is held in a global variable called playerLives. Which statement below makes the most sense?
repeat(global.playerLives)
loop(playerLives)
loop(global.playerLives)
repeat(playerLives)
Suppose this code is found inside the Enemy object's Collision with Player event.
move_bounce_all(true);
instance_destroy(other);
What does the first line do?
make the Enemy change direction
make the Player change direction
make both objects change direction
make the Player stop while the Enemy bounces
Suppose this code is found inside the Enemy object's Collision with Player event.
move_bounce_all(true);
instance_destroy(other);
What does the second line do?
Destroy the Player
Destroy the Enemy
Destroy both Player and Enemy
Destroy all other Enemies in the room
What does this code do?
x = xprevious;
y = yprevious;
move the object back in time one step
move the object backwards 1 pixel
move the object to the start position
move the object to next open position
You want to move your object 1 pixel to the right. Which of the following statements will NOT work?
x =+ 1;
x = x + 1;
x += 1;
x++;
To give your user a choice between left-handed and right-handed controls, what should you use for moving left?
the left arrow and the A key
the left arrow and the D key
the left arrow and the left mouse button
the left arrow and the W key
You want to allow your user to hit the space bar or the up arrow key to jump. What logical operator will you use?
||
&&
%%
##
You want something to happen when the user clicks the space bar and they have at least 2 lives. What logical operator will you use?
||
&&
%%
##
You run your game and get this error message.
Explain what it means in as much detail as possible. Do NOT simply copy the words in the error message! You must EXPLAIN what the error message means.
Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?
instance_destroy()
Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?
irandom_range()
Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?
room_goto()
Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?
instance_create_layer()
In what event should you declare variables and give them an initial value?
You want to create a new sprite that you will draw yourself. You want it to be 48 px tall and 16 px wide. How will you change the canvas size?
