NEW
Font size
Worksheetsgamemaker
Total questions: 46
Worksheet time: 35mins
To hold your game's main player image you used
an Object
a Sprite
an event
an action
Which action removes an object from a game (like after an explosion)?
Outside Room
Destroy Instance
Alarm
Wrap
What action is used to choose a different sprite when your object changes direction?
image_index
set_sprite
sprite_index
set_image
Background objects should be drawn ______ so they should appear ______ in the list of layers inside the Room Editor.
first, first
first, last
last, first
last, last
Complete the sentence:
To move an object up . . .
set hspeed to a negative number.
set hspeed to a positive number.
set vspeed to a negative number.
set vspeed to a positive number.
What does the built-in object, other, represent in collisions?
a reference to the current instance ID
the next event to be executed for the current instance
the instance ID of the object with which this instance collided with
the coordinate point of the location where the collision occurred
How many steps in 3 seconds?
30
60
120
180
Which is a valid way to move an instance of an object?
Use the move() engine-defined function.
Modify the object’s x and y properties.
Modify the object’s height and width properties.
Use a with() statement so that it will move with another object.
Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the right side of the room?
x < 0
x > 1024
y < 0
y > 768
Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the left side of the room?
x < 0
x > 1024
y < 0
y > 768
Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the top of the room?
x < 0
x > 1024
y < 0
y > 768
What feature of GameMaker Studio 2 controls the draw order of instances in a room?
objects
layers
scripts
events
What is the purpose of a break statement?
It exits the event.
It stops the current instance's movement.
It tells the switch statement to stop executing.
It pauses the game.
What can the switch statement be used to replace?
a loop
an if-else if-else statement
swapping two variable's values
the switch position of two instances
What name is given to a value that can either be true or false?
code
abstract
boolean
logical operator
What symbol is used for the AND operator?
&&
||
|
@@
Which operator is used for the OR operator?
&
!!
||
&&
What is used to represent the NOT operator?
!
!!
&&
||
Which of the following variables names is an example of camel case?
totalScore
TOTALSCORE
total_score
totalscore
To get your object to react to something, you must create
a room
a background
an event
a sprite
What Programming Language does Game Maker use?
C++
Java
GML
Actionscript
Which code would make an instance of the obj_car object move up?
obj_car.x += 5;
obj_car.x -= 5;
obj_car.y += 5;
obj_car.y -= 5;
Which code would make an instance of the obj_car object move left?
obj_car.x += 5;
obj_car.x -= 5;
obj_car.y += 5;
obj_car.y -= 5;
Angle - Here is a sprite as it was drawn (original position), what direction will it be facing after the below gets applied?
image_angle = 270;
To the right (same position)
Pointing up
Pointing to the left
Pointing down
Which is the correct GML code for Game Maker Studio 2 to create an object instance (assuming the correct parameters are passed)?
add_instance();
create();
instance_create();
instance_create_layer();
In an animated sprite, which frame is the first frame?
0
1
With an animated sprite with 6 sub images/frames in all, how would you select the last image/frame?
image_index = 6;
image_index = 5;
Which variable sets the rotation of the sprite and is measured in degrees (0 points to the right, 90 is up, and so forth)?
image_angle
speed
direction
image_rotation
'Game levels' are called ....... in Gamemaker
Places
Rooms
Levels
Missions
Which function will generate a random number between 50 and 970?
Random(50, 970)
Random_range(50, 970)
irandom(50) to irandom(970)
irandom_range(50, 970)
PNG files are used to create .....
Sprites
Objects
Players
Rooms
What are the coordinates for the upper right corner point of the room?
(0, room_height)
(0, room_width)
(room_width, 0)
(room_height, 0)
What follows the comment slashes to create the title of an event?
@description
@title
@event.title
@describe
Button-click events should be added as
Left-Pressed
Left-Down
Left-Click
Mouse-Enter
An IF statement is used to
test a condition to make a decision
test a condition to create a loop
test a condition to end a loop
test a condition to move to the next level
Consider this code statement:
instance_create_layer(100, 200, "Instances", ball);
200 represents
the x-value of the instance
the y-value of the instance
the maximum number of instances allowed
the object ID of the instance
Consider this code statement:
instance_create_layer(100, 200, "Instances", ball);
"Instances" represents
the name of the instance to be created
the name of the layer to create the instance on
the name of the room to create the instance in
the name of the layer to be created
Consider this code statement:
instance_create_layer(100, 200, "Instances", ball);
ball represents
the type of instance to be created
the name of the sprite to be used
the name of the room used
the name of the layer to be used
What does the built-in object, other, represent in collisions?
a reference to the current instance ID
the next event to be executed for the current instance
the instance ID of the object with which this instance collided with
the coordinate point of the location where the collision occurred
What does this code do?
x++;
add two to x;
add one to x;
set x = 1;
this would cause an error
