![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
An abstract class for simple movement scripts that generally follow the same format. Scripts that inherit from this are typically used for objects with simple movement, typically projectiles.
Documentation updated 11/13/2024
Public Member Functions | |
void | HorizontalDirectionChange (bool movingLeft) |
If we want the object to move to left, ensure movementDirection.x is negative. Otherwise, ensure it's positive. | |
void | VerticalDirectionChange (bool movingDown) |
If we want the object to move to down, ensure movementDirection.y is negative. Otherwise, ensure it's positive. | |
Public Attributes | |
Vector2 | movementDirection |
Direction the object should move in. | |
void RudimentaryMovement.HorizontalDirectionChange | ( | bool | movingLeft | ) |
If we want the object to move to left, ensure movementDirection.x is negative. Otherwise, ensure it's positive.
void RudimentaryMovement.VerticalDirectionChange | ( | bool | movingDown | ) |
If we want the object to move to down, ensure movementDirection.y is negative. Otherwise, ensure it's positive.
Vector2 RudimentaryMovement.movementDirection |
Direction the object should move in.