Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

I agree with Spencer. If crouch is set in your update function, it will be called repeatedly. You need a state variable to guard against repeatedly calling crouch, like:

if (action that causes crouch) {

   if (!this.crouching) { this.actor.spriteRenderer.setAnimation("Crouch", false); this.crouching = true; }

}


(I don't know how to do quote code yet...)