You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task: Add movement animations for both NPC's and the player character.
Feature:
Implement a PlayerAnimationController which configures animations to be played when the player changes direction.
Configure KeyboardPlayerInputComponent to throw entity events when keyboard input is received.
Tigger events only in KeyboardPlayerInputComponent.KeyUp to avoid triggering animations every update() cycle.
Implement PhysicsComponent.MovementEvents() to be called in PhysicsComponent.update() and throw movement events for the NPC entity.
Use private int lastDirection and private int currentDirection to track changes in direction of the NPC. lastDirection is to be update via PhysicsComponent.MovementEvents() where as currentDirection is update every cycle by a call to KeyboardPlayerInputComponent.getCurrentDirectionCode().
Task: Add movement animations for both NPC's and the player character.
Feature:
Implement a
PlayerAnimationController
which configures animations to be played when the player changes direction.Configure
KeyboardPlayerInputComponent
to throwentity
events when keyboard input is received.Tigger events only in
KeyboardPlayerInputComponent.KeyUp
to avoid triggering animations everyupdate()
cycle.Implement
PhysicsComponent.MovementEvents()
to be called inPhysicsComponent.update()
and throw movement events for the NPC entity.Use
private int lastDirection
andprivate int currentDirection
to track changes in direction of the NPC.lastDirection
is to be update viaPhysicsComponent.MovementEvents()
where ascurrentDirection
is update every cycle by a call toKeyboardPlayerInputComponent.getCurrentDirectionCode()
.Implement player animations
Implement NPC animations
Dependencies
The text was updated successfully, but these errors were encountered: