Skip to content

Correct Solution Rejected. Lesson 11 Practice 2 - Moving in Circle Using Delta #1103

@RobertOrange

Description

@RobertOrange

Does not pass when using a correct solution with semi-colons at the end of lines or using variables in function calls instead of doing math in the function parameter.

To Reproduce
Steps to reproduce the bug:

  1. Go to lesson 11, problem 2 "Moving in Circle Using Delta"
  2. Click on "Solution"
  3. Click on "Use Solution"
  4. Add Semi-Colons to each line.
  5. Click "Run"
  6. See error

Alternatively:

  1. create variables inside of the function for rotation_speed and move_speed
  2. set rotation_speed to 2 * delta
  3. set move_speed to 100 * delta

var rotation_speed = 2 * delta
var move_speed = 100 * delta

  1. call rotate(rotation_speed)
  2. call move_local_x(move_speed)
  3. Click "Run"
  4. See error

Refer to the screenshots for examples of the above.

Expected behavior
Should pass checks but results in errors.

Screenshots
Image

Image Image

Information about your device (please complete the following information):

  • Operating System: Windows
  • Browser: Chrome

Additional context
Other problems allow the use of semi colons, so it's odd they cause an issue here despite allowing the code to run.
The error messages aren't explicit whether it's the movement speed or the rotation speed that is the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions