Flipping Sprite for Nook

PHOTO EMBED

Thu Apr 04 2024 19:01:17 GMT+0000 (Coordinated Universal Time)

Saved by @mry2khuu #c++ #c #nook #sprite

//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;
}
content_copyCOPY