Unity Trigger States and Conditions

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Darion Taylor
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does "Triggering a state" mean in Unity?
Resetting the entire game to its original state
rearranging the objects state or condition based off the scene
to create an if statement regarding the object's position in the script
changing an object's behavior, appearance, or condition based off input
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sets a trigger state when a coin is collected?
if (coinsCollected = true)
if (coinsCollected == true)
if coinsCollected == true;
coinsCollected = if (true)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What state does the player appear to be in?
int health = 0;
The player is fully healed
The player has just leveled up
The player is dead or has no health
The player is at level 0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which condition will detect if the player is holding the “W” key to move forward?
if (Input.GetKey(KeyCode.W))
if (Input.GetKey("W"))
if (Input.HoldKey(KeyCode.W))
if (KeyCode.W.Pressed())
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s the best way to turn on a light when the player presses “L”?
if (Input.GetKeyDown("L")) {
lightOn = true;
}
if (Input.GetKeyDown(KeyCode.L)) {
lightOn = true;
}
if (KeyCode.L = pressed) {
lightOn = true;
}
if (L.GetKeyDown()) {
lightOn = true;
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jump(), OpenDoor(), or TakeDamage() would be good Triggering methods for handling different states
TRUE
FALSE
No idea
Null
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition correctly checks if the player pressed the Space key?
if
(Input.GotKey(KeyCode.Space)))
if
(GetKey(KeyCode.Space))
if
(Input.GetKey(.Space))
if
(Input.GetKey(KeyCode.Space))
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
games

Quiz
•
KG - University
10 questions
Microsoft Windows

Quiz
•
4th Grade - University
10 questions
Makey Makey Lesson 7

Quiz
•
6th - 8th Grade
18 questions
Home Row Keyboarding

Quiz
•
3rd - 9th Grade
13 questions
Middle Row & Top Row Keys

Quiz
•
6th - 12th Grade
16 questions
Understanding Graphics

Quiz
•
7th Grade
10 questions
SCRATCH JUMPING GAME

Quiz
•
6th Grade
10 questions
Past Technology

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
14 questions
Computer Hardware

Quiz
•
7th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade