soldiers in an airplane

dlsdls Member Posts: 4
edited June 2012 in Working with GS (Mac)
I'm building an iphone game with GameSalad. I call it ParaTrooper.

Screenshot: http://imageshack.us/photo/my-images/823/schermafbeelding2012060.png/

So there are a random number of airplanes and I would like that each airplane drops a random number of soldiers with a parachute. How do I do this? So the airplane is flying over and suddenly it drops a soldier out of the back.

Answers

  • patapplepatapple Member Posts: 873
    if you want drop a parachute when the airplane is after the middle of the screen you can do that.
    in the airplanes rules

    when self.position >= 240 spawn parachute...

    hope that helps
  • dlsdls Member Posts: 4
    Thank you! That works.

    I did: self.position.X = random(min,max)
    if that's true:
    spawn actor
    position: self.Position.X for x and self.Position.Y for y

Sign In or Register to comment.