Author Topic: Flipping Sprites?  (Read 361 times)

Mr. Potatobadger

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Flipping Sprites?
« on: February 15, 2017, 03:14:09 am »
Is there a way to flip sprites in Jo Engine without flipping every sprite on screen? I know SGL supports this natively.

mindslight

  • Administrator
  • Full Member
  • *****
  • Posts: 121
  • Karma: +0/-0
    • View Profile
    • Jo Engine
Re: Flipping Sprites?
« Reply #1 on: April 05, 2017, 04:46:08 pm »
Hi,

I already answer on twitter but... ;)

You just have to draw bettween enable and disable flipping methods like this:

jo_sprite_enable_horizontal_flip();

jo_sprite_draw...

jo_sprite_disable_horizontal_flip();

 

Sitemap 1 2 3 4 5 6 7 8 9 10 
SMF spam blocked by CleanTalk