life system and scene state

MrSKYoneMrSKYone Member Posts: 26
edited July 2012 in Working with GS (Mac)
Hi to you all,

Im trying to learn several things about gamesalad and I have an issue with life system and scene state.
In an angry bird like, I have an actor that I throw on ennemies. When The first projectile is on site, I would like the camera to come back to the "cannon" and spawn a new actor to throw. I don't know how to do that, any idea?

Thanks a lot for your help

Best Answer

  • ericzingelerericzingeler Posts: 334
    edited July 2012 Accepted Answer
    Couple ways you can do this. First you would need a trigger for the cam to shift back to the cannon. That trigger can be based on collision, distance/position, or movement. I personally would base the trigger on the movement of the projectile (or lack of rather).

    Use the magnitude function to find the movement amount of an actor. Simply create a rule that states that if the projectile magnitude is less than x, trigger cam switch.

    After switch has been triggered, just interpolate cam position back to the cannon and spawn your new projectile.

Answers

  • MrSKYoneMrSKYone Member Posts: 26
    Thanks, Im going to try this, I'll let you know if it worked ;)
Sign In or Register to comment.