Need help with spawning monsters

XxKxXXxKxX Member Posts: 9
edited October 2012 in Working with GS (Mac)
Hey

how do you get a monster to appear faster, the farther you get in the game????

Comments

  • SingleSparqSingleSparq Member Posts: 1,339
    When you say 'farther into the game' what do you mean? Farther in a single scene as your travelling along? or Farther as you play additional levels?
  • XxKxXXxKxX Member Posts: 9
    In a single scene
  • SingleSparqSingleSparq Member Posts: 1,339
    So if your main character moves along, say left to right, in the scene you could 'hit' an invisible 'marker' actor. When this occurs you could have a global attribute like game.badguyspeed increase by 1 each time. the Bad guys would then receive this info as a rule where if game.badguyspeed =1 go this speed, if game.badguyspeed =2 go this speed and so on.

    You could even base it on time - if a timer is running during the scene your Bad guy rule would say if timer is at 60secs do this speed, etc.

    Hope that helps.
  • XxKxXXxKxX Member Posts: 9
    what kind of attribute do i have to create Real, boolean or what???
    this is the first time I use gamesalad so is a little confused :)
  • SingleSparqSingleSparq Member Posts: 1,339
    If increasing by whole numbers use integer. So when my guy hits the marker, set up a a rule with a change attribute type. Choose 'game.badguyspeed' in field 1 and 'game.badguyspeed+1' in field 2. If resetting the scene manually make sure you reset the attribute to 0. It will be 0 when you enter the scene since your not saving the attribute.
  • XxKxXXxKxX Member Posts: 9
    Okay thank you. it was a great help
  • SingleSparqSingleSparq Member Posts: 1,339
    No problemo
  • famekraftsfamekrafts Member, BASIC Posts: 834
    Try to go through Gamesalad cookbook. Once you go through all the basic video tutorials, you will understand better which attribute to use where.
Sign In or Register to comment.