Change which sprite is in front

I have two sprites in one layer. I would like to dynamically change which one is in front depending on screen position. How do I do this? I have tried changing both ZOrder and VertexZ and neither seem to have any effect. How do you dynamically move one sprite in front of another?


  • kjpou1kjpou1 LUMember, Xamarin Team Xamurai

    Hey William

    This problem has been fixed here:

    We will have the next release out very soon. One thing to work out with the build of NuGets and PCL because of Windows 10 and VS 2015 after their official release.

  • WilliamSheltonWilliamShelton USMember ✭✭

    Thanks Kenneth. So once the release comes out, is the correct way to accomplish this with ZOrder or VertexZ?

  • kjpou1kjpou1 LUMember, Xamarin Team Xamurai


    Should be with ZOrder. You can also use the CCNode's ReorderChild() method as well which the following does.

Sign In or Register to comment.