Hello Guest

Author Topic: Alpha not Working on iOS  (Read 4435 times)

Maserat

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
Alpha not Working on iOS
« on: October 29, 2012, 12:07:24 am »
I have three animated sprites sitting on top of each other for different animations - all with the same transform coordinates. In the simulator, when I toggle the alpha using new Color, the different sprites yield a proper animation. However when I play the animations on my iPod one of the three sprites never turns invisible. Should I be using something else besides new Color and change the alpha? Is this a 2dtoolkit error or an error in my code?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Alpha not Working on iOS
« Reply #1 on: October 29, 2012, 12:13:02 am »
If they have the same z coordinates, the order in which they will be drawn is not guaranteed. Try offsetting them in z in the order you wish to draw them - you will probably get better results then.