Increasing the timer speed

sparkzillasparkzilla Member Posts: 152
edited November -1 in Working with GS (Mac)
Hi, I read the tutorial on increasing timer speed but it doesn't seem to work for me.

I am trying to increase the spawn frequency of a actor based on the game time. for the first minute it spawns one actor/second then each following minute it speeds up.

Change Attribute:Game.ActorFrequency = 1

Timer: Every 60 seconds
Change attribute: Game.ActorFrequency = Game.ActorFrequency* 0.75

--

Timer: Every Game.ActorFrequency
Spawn Actor

--

Comments

  • sparkzillasparkzilla Member Posts: 152
    I found this method by jonmulcahy but it does not seem elegant as the spawn block has to be repeated each time.

    http://gamesalad.com/forums/topic.php?id=2241

    any other ideas?
  • sparkzillasparkzilla Member Posts: 152
    No one ever had a similar problem?
  • NachozNachoz Member Posts: 52
    im not sure if this will help but create an actual timer buy making an attribute called timer then make 2 invisible actors with a rule in one that if actor collides with "other blank actor whatever you named it" every 1 second change attribute game.timer to game.timer+1. then make another rule on the actor that sais if attribute timer is = to or greater then 60 change attribute "your actor speed"to whatever speed you want, then just copy and paste that rule for each time you want it to change and replace the 60 with the next higher number. hope this helps a little
Sign In or Register to comment.