Ball going through a hoop

wongj19wongj19 Member Posts: 45

How can I make it look as though a ball is in front of the hoop on the way up but behind it on the way down. I have attached pictures if my explanation is unclear.
Thanks

On the way towards the basket
Image and video hosting by TinyPic

On the way down
Image and video hosting by TinyPic

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited June 2016

    As you can't change layer order in game you could have the net spawn a copy of itself once the balls y position is above the nets y position (plus an offset). Once the balls y position is below that spawned copy of the net then the spawned copy net would delete itself. You may need the ball and net on the same level, with the ball layered above the original net and then make sure that the spawned net is spawned at the front of the layer.

    I can't open GameSalad to send you an example.

  • KevinCrossKevinCross London, UKMember Posts: 1,894

    To be honest you don't even need to spawn a net each time. You could have 3 layers:

    1. Net
    2. Ball
    3. Net

    On the net actor that's above the ball you can change the transparency so that the alpha is 1 when the ball is above the net and 0 when it's below it.

    This seems like an easier option

Sign In or Register to comment.