Heklow79... How did you speed up a timed actor?

SaveDaveSaveDave Member Posts: 140
edited November -1 in Working with GS (Mac)
hi heklow79 or anyone else that may know..

In checkout, how did you speed up the random food items and keep the items the same distance apart?

Thanks

Comments

  • SaveDaveSaveDave Member Posts: 140
    Oh this is just silly!!
  • SaveDaveSaveDave Member Posts: 140
    Is Heklow79 still here? anyone else know the answer?

    thanks
  • UtopianGamesUtopianGames Member Posts: 5,692
    He probably set the speed to a global integer, so he had an integer called speed and set it to 100 then if score > 500 speed = 120.....if score > 1000 speed = 140 and so on.

    Darren.
  • SaveDaveSaveDave Member Posts: 140
    right, i get this part, but how are the actors kept the same distance apart during this?
  • victorkin11victorkin11 Member Posts: 251
    Use the cam, and set interface and background layer is not scrollable!
    or constrain all the food!
  • HachikoHachiko Member Posts: 330
    If you're talking about check out!, what I did was making the scene a little bigger (530 or so), having the scene attribute wrap x on true, and then I set enough fruits on the screen. When a fruit goes offscreen, it first check if it is visible (took 1 life) or not (when touched their alpha just goes to 0), then they change into another random fruit and if needed the alpha goes back to 1 and since the screen is wrapped, they start again. Can't remember if I used a constrain to move on the x or a move behaviour. To speed up everything at the same time, they just refer to a global attribute, as utopian said. To increase it what I did isn't "if score > 500 then.." what I did was having two attribute, one for the score and one to check when to add speed. So let's say score start at 0 and the second attribute at 25. Everytime score is equal or greater to that attribute, speed things up and add another 25 to that attribute.
    So it goes on forever with just one or two rule. If you want it to stop just add another "if score is less or equal to desired max value" before doing anything.
  • SaveDaveSaveDave Member Posts: 140
    Hi Hachiko, how did you stop the actor being re "touched" after the alpha has been set to 0?
    I have tried this and even though the actor is invisible with alpha1 it still scores if it is touched....
Sign In or Register to comment.