//if the last time player moved was left if (!AEInputCheckCurr("A") && lastPlayerDir == 1 && isWalking == 0) { //flip the sprite AEGfxTextureSet(playerIdleTexture, 0.0f, 0.0f); AEGfxSetFullTransform(curr->pos.x, curr->pos.y, 0.0f, -(curr->width * tile_dim), curr->height * tile_dim); isWalking = 0; }