Hey guys I need help with multiple interval speeds?

i am trying to design an app where every 30 seconds the falling item gets faster and faster how do you do somethings like this?
Also i made a tables with 31 different positions how do you put them on repeat so they keep spawning after all 31 positions have been used?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Create a game attribute called game.fallingSpeed (real) and set it to the initial speed of the falling item actor. In the falling item actor, use game.fallingSpeed as the speed. In that actor or any other actor, have a timer set to every X seconds (could be 1 second, 8 seconds, whatever you want) that changes attribute game.fallingSpeed to game.fallingSpeed+20 (or +50 or +200... it's up to you).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • bdog204bdog204 Member Posts: 2
    Thanks for the help, do you know anything about my second problem? so put 31 numbers in my table on repeat
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The easiest way is to use the Loop over Tables behavior that is available to Pro members. Without that, you would need to create a loop manually. I have a demo at http://forums.gamesalad.com/discussion/comment/383521/#Comment_383521

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • bdog204bdog204 Member Posts: 2
    Hey im still having issue getting the 31 values in my table to loop because after i preview it only runs through the 31 values and stops.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Hey im still having issue getting the 31 values in my table to loop because after i preview it only runs through the 31 values and stops.
    You'd need to reset the loop counter attribute and have a rule condition that starts the loop process again.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.