Send me in the right direction.

I am trying to make a simple puzzle game where the player has to collect a certain amount of coins to open a gate to the next level. Can someone send me to the correct tutorial that explains this?

ex: player has to collect 10 coins to open the gate to get to the next level. If said player only collected 9 the change scene attribute won't trigger when player collides with it.

Regards,

Nep

Comments

  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    Would it be the same amount of coins for each level?
  • artfishartfish Member, PRO Posts: 369
    @nep2008 The cookbook is a great place to start !

    In a nutshell- create a game attribute called coins. Integer is fine. Create a rule in your player, When player collides with coin, change attribute game.coins to game.coins+1

    have a rule for your change scene that say When attribute game.coins is greater than or equal to 10, change scene.

    Just the basics here, but hopefully you understand. ;)
  • PaxPaxPaxPax Member Posts: 106
    As above - if you want to see a video, here ya go.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Hi @Nep2008, below is an outline of how you can get this to work.

    1. Make a new Game Attribute called coins, make it an integer.

    2. Each time your player Collides with a coin, add 1 to the coins attribute, and probably destroy the coin.

    3. Add a Rule to the gate actor that watches the value of the coins attribute. When coins equals the amount you want for that gate (say 10), open the gate.

    Let me know if that helps at all.
  • nep2008nep2008 Member Posts: 16
    I won't have the same amount of coins everytime.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    That really shouldn't matter, in each scene you can change the number of coins the gate watches for and open only when that number is reached. You could also have multiple gate actors in each scene that watch for different amounts of coins...
  • nep2008nep2008 Member Posts: 16
    Jamie,

    I am working with the windows free version. How do I bring up the expresion editor for the attribute?

    I went into game added an attribute: integer named it coin.

    Went into my goal actor where my change scene attribute is and added a rule. and can't put in equals to our greater than.

    I guess I dumb but could you spell it out for me. I know you have the windows version, and I am a rookie.

  • nep2008nep2008 Member Posts: 16
    I found it. Thanks for the help everyone.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sounds like you found what you needed, but if not I'm afraid I'm a Mac user not a Windows user. If you need specific interface guidance, I'm sure someone here can point you to what you need in the Windows version.
  • nep2008nep2008 Member Posts: 16
    I guess I have to fool around with it a little more. I thought you did a tutorial on graphics in windows gamesalad. I must have been mistaken. Thanks anyway for your help it is much appreciated. I will try to fine tune what you said to get what I need accomplished.

    Regards,

    Nep
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I'd be glad to put together a quick demo file, but it would be in the Mac version. Is the Windows creator able to open Mac files?
  • nep2008nep2008 Member Posts: 16
    I am not sure. I have only been working with GS for about two weeks with no prior knowledge of the product or trying to make any games. Most of the tutorials are for Mac. So being new to GS I have never tried to open anything from Mac.

    Enough pontificating on my part.

    Jamie, That would be great try to send it over to me and I will try to open it. Just give me the instructions as to how you open Windows files in your MAC creator, and I will try to transpose them to my Windows creator.

    Regards,

    Nep

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    @nep2008, I've posted a quick video and the source files here:

    http://www.jamie-cross.net/?portfolio=gamesalad-pickups

    Check it out, I hope it helps!
  • nep2008nep2008 Member Posts: 16
    Jamie,

    Hit the nail on the head. Thank you for taking the time with the video! :D
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    You're welcome! Glad it got it for you, a picture (video) is truly worth 1000 words sometimes!
Sign In or Register to comment.