Skip to content

Example game bug where agents slide diagonally instead of moving straight #9

@nmatter1

Description

@nmatter1

Describe the bug

Agents will occasionally move diagonally to the next square instead of turning right at 90 degree angles (for example at the timestamp 0:03) when calling this function

moveAgent({ scene: this, name: "Medina", location: "Red House", })

drifting.mp4

Expected Behavior

Agents should move 90 degrees to their next location without any diagonal movement

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: 113.0.5672.127

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingexample-gameIssues about the example phaser game

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions