Closed aallnneess closed 3 years ago
Problem: Sprite Animation freeze using SpriteAnimationComponent / SpriteAnimationStateComponent. The first image of the animation is loaded, but no animation.
Ive build an playerSpriteManager method, called in the render function:
` private void playerSpriteManager(){
SpriteAnimationComponent spriteAnimationComponent = ComponentRetriever.get(player,SpriteAnimationComponent.class); SpriteAnimationStateComponent spriteAnimationStateComponent = ComponentRetriever.get(player,SpriteAnimationStateComponent.class); spriteAnimationComponent.fps = 24; spriteAnimationComponent.currentAnimation = "walk"; spriteAnimationComponent.playMode = Animation.PlayMode.LOOP; spriteAnimationStateComponent.set(spriteAnimationComponent); }`
Inside h2d:
Hyperlap 0.0.6-Snapshot Windows 10 64bit Intellij OpenSk 15
Not a issue :smile:
shame on me 😜
My mistake: animation was restarted in every frame.
Problem: Sprite Animation freeze using SpriteAnimationComponent / SpriteAnimationStateComponent. The first image of the animation is loaded, but no animation.
Ive build an playerSpriteManager method, called in the render function:
` private void playerSpriteManager(){
Inside h2d:
Hyperlap 0.0.6-Snapshot Windows 10 64bit Intellij OpenSk 15