wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

RPG (Lessons 17 - 24) Worksheet

Total questions: 15

Worksheet time: 4hrs 45mins

Name
Class
Date
1.

What do we use so the spider can determine the distance from the player?

a)

float

b)

Raycast

c)

int

d)

GameObject

2.

Given the following script, what is the purpose of the MoveTowards parameter, transform.position? You may use the Unity Documentation to answer.

a)

The position to move from.

b)

The position to move towards.

c)

Movement

3.

Given the following script, what is the purpose of the MoveTowards parameter, ThePlayer.transform.position? You may use the Unity Documentation to answer.

a)

The position to move from.

b)

The position to move towards.

c)

Movement

4.

Given the following script, what is the purpose of the MoveTowards parameter, EnemySpeed? You may use the Unity Documentation to answer.

a)

The position to move from.

b)

The position to move towards.

c)

Movement

5.

When coding a function that will be scheduled for later execution by StartCoroutine(), assuming one of the function parameters is a "float delay", which of the following lines of code should appear first within the function body?

a)

Wait(delay);

b)

return new delay();

c)

IEnumerator.delay();

d)

yield return new WaitForSeconds(delay);

6.

When writing a target function to be scheduled for delayed execution by StartCoroutine(), which of the following extra pieces of code need to be added?

a)

Make the function return data type "IEnumerator"

b)

Add the line "yield return new WaitForSeconds(delay);"

c)

Both A and B

d)

Neither A or B

7.

The ____ operator returns true if the values are not equal.

a)

<=

b)

>=

c)

!=

d)

==

8.

Which of the following is the unique C# name of the Transform object that is assigned to each sprite?

a)

transform

b)

xform

c)

Transform

d)

myTransform

9.

transform.position is the position property of a GameObject’s Transform, which is accessible in the Unity Editor and through scripts.

a)

True

b)

False

10.

The Raw Image displays a non-interactive image to the user. (You should visit the Unity Documentation)

a)

True

b)

False

11.

The following function call will return random values in what range?

a)

0, 1, 2, 3, 4, 5, 6

b)

1, 2, 3, 4, 5, 6

c)

1, 2, 3, 4, 5, 6, 7

d)

1 or 7 only

12.

The <= operator returns true if the value on the left is greater than or equal to the value on the right.

a)

True

b)

False

13.

Navmesh is a way of defining a certain area within your game where our enemies can walk and navigate to a certain person or object.

a)

True

b)

False

14.

The Animation Component can only store one animation.

a)

True

b)

False

15.

The Animation Component can ________.

a)

hold multiple animations

b)

play the animation automatically

c)

have the animation interact with Physics.

d)

All the above