Search Header Logo
Create a Dark Moody Atmospheric 2D Game with Unity and C# - Removing Player's Control While Dashing

Create a Dark Moody Atmospheric 2D Game with Unity and C# - Removing Player's Control While Dashing

Assessment

Interactive Video

Information Technology (IT), Architecture, Physics, Science

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial addresses a bug in a game where players can change direction mid-dash. The instructor provides a simple fix using an if statement to prevent movement during dashing. Later, another bug is discussed, where the dash direction is incorrectly checked multiple times. The solution involves adjusting the code to check the dash direction only once when the dash starts. The tutorial concludes with setting constraints and ensuring consistent player experience by adjusting the velocity with time deltatime.

Read more

5 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the if statement mentioned in the text?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the bug that was discovered regarding movement while dashing.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain how the dash direction is determined in the script.

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

What changes were made to prevent changing direction while dashing?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Why is it necessary to multiply the RB dot velocity by time dot deltatime?

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?