Sleepy-Fish / FrogFarts

Fart into the skies
https://sleepy.fish/frogfart
GNU General Public License v3.0
1 stars 1 forks source link

Restart one time animations at frame 0 after calling #6

Closed JRileyH closed 5 years ago

JRileyH commented 5 years ago

Ensure that animations that are run one time through (playerSquat) gets reset to frame 0 when it's called again. Currently there is a bug where one subsequent calls of setAnimation the player goes immediately to the last frame.

JRileyH commented 5 years ago

https://github.com/Sleepy-Fish/GameJam/blob/riley/entity-rework/src/entities/EntityAnimation.js#L37

Fixed in the midst of building out entity rework.