Unlock an actor when 1 minute has passed

CabacoCabaco Member Posts: 414
edited November -1 in Working with GS (Mac)
So I have my actor that is a ball. And now I want when one minute has passed, you unlock a new ball and when unlocking a new ball, how do I choose the ball so I play as it? Please explain!

Comments

  • CabacoCabaco Member Posts: 414
    Please help out!
  • DimensionGamesDimensionGames PRO Posts: 993
    create a timer game.balltime +1 when game.balltime = 60

    Two options move actors or spawn them.
  • CabacoCabaco Member Posts: 414
    Can you make a deeper explanation please?
    I will give you credit within my app!
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    please don't bump your own threads after only 20 minutes. You should wait at least until it drops off the front page.

    you need to go into much greater detail of what you're trying to do, how that unlocked ball will be chosen in the game, etc. the information you provided gives too little detail to really help you.
  • CabacoCabaco Member Posts: 414
    So my game is a type of game where you have to send other balls of the screen and defend your circle in the middle of the screen. You have to survive for as long as you can and if you survive over 60 seconds then I want it to unlock a ball where in the main menu you can change to it.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    put in actor in the level that is called timer, create an attribute called gameTime and ballUnlock.

    in the timer actor, put a rule that says

    every 1 second
    gameTime = gameTime + 1

    then on the player's ball, put a rule that says

    when gameTime = 60
    change attribute ballUnlock to True

    then on your main menu where you have you're unlockable ball say

    when ballUnlock = true
    (put whatever code you have to select the new ball here)
  • CabacoCabaco Member Posts: 414
    Ball Unlock is what type of attribute?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    boolean
  • CabacoCabaco Member Posts: 414
    And what about when I want to change my ball?
  • CabacoCabaco Member Posts: 414
    How do I do to change my ball in the main menu so that in my 3 levels it is playing as that ball?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'm not sure what you are trying to do, so I can't give you code. I suggest you watch all these youtube videos, they will give you a great foundation on GameSalad and allow you to answer most of your own questions.

    http://www.youtube.com/user/GameSaladCookbook
  • CabacoCabaco Member Posts: 414
    I want to change my character which is a ball and they are moving on my finger, constrained to my touch.
  • MotherHooseMotherHoose Member Posts: 2,456
    how do you want your character to change?
    different image? different color? different size? different actor? different position on screen? different movement effect?

    how do you want to implement the change? which event will trigger it?

    Please be specific with requests, so answers can relate to your problem... and you can use them to solve it!

    Explain what you want to do.... what you have tried that didn't work.

    MH
  • CabacoCabaco Member Posts: 414
    Change actor and I want to implement the change when I click the ball on the main menu and to trigger its usage I want a start button to start everything.
Sign In or Register to comment.