wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GameMaker 3rd qtr

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

Sprites are

a)

containers for holding images used in a game

b)

containers for holding events used in a game

c)

containers for holding actions used in a game

d)

containers for holding objects used in a game

2.

A single file that holds multiple images (often used to create animated sprites) is called a(n)

a)

sprite sheet

b)

sprite collection

c)

image sheet

d)

image collection

3.

Onion skinning is used to

a)

help create animated sprites

b)

create transparent sprites

c)

change image appearance

d)

alter an image angle

4.

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)  

5.

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)  

6.

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)  

7.

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)  

8.

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

a)

Magic Wand tool

b)

Background tool

c)

Selection tool

d)

Color Picker tool

9.

Which of the following statements is in the correct order?

a)

Create a Sprite, Create an Object, Add an Event, Write Code for the action

b)

Create an Object, Create a Sprite, Add an Event, Write Code for the Action

c)

Create a Sprite, Create an Object, Write Code for the action, Add an Event

d)

Create an Object, Create a Sprite, Write Code for the Action, Add an Event

10.

Each copy of an object that is added to a room is called an

a)

instance

b)

object

c)

image

d)

asset

11.

speed, hspeed, and vspeed are _________ variables

a)

built-in

b)

instance

c)

local

d)

global

12.

spd, hsp and vsp are _________ variables

a)

built-in

b)

instance

c)

local

d)

global

13.

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.

a)

Key Down

b)

Key Pressed

c)

Key Held

d)

Key Released

14.

You want an event to fire one time no matter how long a key is held. You should use a _____________ event.

a)

Key Down

b)

Key Pressed

c)

Key Held

d)

Key Released

15.

A Boolean variable holds

a)

true or false

b)

numeric data

c)

whole word data

d)

character data

16.

To choose between 1 of 2 actions you would code

a)

an IF/ELSE block

b)

a CHOOSE block

c)

a REPEAT block

d)

an IF/THEN block

17.

To draw images that represent the current number of lives remaining we used

a)

an IF/ELSE block

b)

a CHOOSE block

c)

a REPEAT block

d)

an IF/THEN block

18.

Consider this statement: place_meeting(x, y+1, obj_wall)

The (x, y+1, obj_wall) part is the

a)

parameter list

b)

instructions

c)

variable list

d)

body code

19.

Consider this statement: place_meeting(x, y+1, obj_wall)

This is looking for a wall object

a)

1 pixel below the current position

b)

1 pixel above the current position

c)

1 pixel to the left of the current position

d)

1 pixel to the right of the current position

20.

Consider this code: audio_play_sound(snd_Click, 1, false);

The last parameter means the sound

a)

will not loop

b)

will loop

c)

cannot be silenced

d)

can be silenced

21.

This line of code produces an error:

if (keyboard_check_pressed(vk_anykey)

How would you fix the problem?

a)

Add one more close parenthesis to the end

b)

Add open and close curly braces around the code below it

c)

add a semicolon at the end

d)

change if to IF

22.

The first line of a Draw event is typically

a)

draw_self();

b)

draw_set_font();

c)

draw_set_text();

d)

draw_set_color();

23.

A controller object is unique because it

a)

does not have a sprite

b)

requires a Draw event

c)

does not require a Create event

d)

can have 1 and only 1 instance

24.

Consider this line of code:

draw_text(8, 20, "Number: " + string(global.num));


The first 2 parameters indicate the text will be drawn

a)

on row 8 starting in column 20

b)

on row 20 starting in column 8

c)

8 times spaced 20 pixels apart

d)

20 times spaced 8 pixels apart

25.

Consider this line of code:

draw_text(8, 20, "Number: " + string(global.num));


"Number: " is the

a)

label for the printed data

b)

variable the data to be printed is currently held in

c)

title used for a table of data being printed

d)

data to be printed

26.

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?

a)

repeat(global.playerLives)

b)

loop(playerLives)

c)

loop(global.playerLives)

d)

repeat(playerLives)

27.

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?

a)

make the Enemy change direction

b)

make the Player change direction

c)

make both objects change direction

d)

make the Player stop while the Enemy bounces

28.

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?

a)

Destroy the Player

b)

Destroy the Enemy

c)

Destroy both Player and Enemy

d)

Destroy all other Enemies in the room

29.

What does this code do?

x = xprevious;

y = yprevious;

a)

move the object back in time one step

b)

move the object backwards 1 pixel

c)

move the object to the start position

d)

move the object to next open position

30.

You want to move your object 1 pixel to the right. Which of the following statements will NOT work?

a)

x =+ 1;

b)

x = x + 1;

c)

x += 1;

d)

x++;

31.

To give your user a choice between left-handed and right-handed controls, what should you use for moving left?

a)

the left arrow and the A key

b)

the left arrow and the D key

c)

the left arrow and the left mouse button

d)

the left arrow and the W key

32.

You want to allow your user to hit the space bar or the up arrow key to jump. What logical operator will you use?

a)

||

b)

&&

c)

%%

d)

##

33.

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?

a)

||

b)

&&

c)

%%

d)

##

34.

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.

4 lines
35.

Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?

instance_destroy()

4 lines
36.

Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?

irandom_range()

4 lines
37.

Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?

room_goto()

4 lines
38.

Describe the use of this function. Does it require parameters? Can it be used without parameters? What is it used for?

instance_create_layer()

4 lines
39.

In what event should you declare variables and give them an initial value?

4 lines
40.

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?

4 lines