how to add coin system

remoncingkesremoncingkes Member Posts: 26
edited July 2014 in Working with GS (Mac)

i've been searching this entire forum and youtube videos but i can't find the answer.

i don't know how to add "current coins to store" so the player can buy items with that coins.

PLEASE PLEASE PLEASE!!!

@tatiang‌ @Socks‌

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Oh hi there.

    Your description of what you need is quite vague. Perhaps you can provide some additional details?

  • SocksSocks London, UK.Member Posts: 12,822

    @remoncingkes said:
    i don't know how to add "current coins to store" so the player can buy items with that coins.

    Do you have a question ?

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    If you ask a detailed question outlining what you need help with instead of stating something that you expect someone to provide, you might get a little more help.

    Anyways, I attached a demo.

  • remoncingkesremoncingkes Member Posts: 26

    i have question about coin system.

    I did my scoring game:
    when actor collide "change attribute=> "game.coin" to "game.coin+1"

    I want to make a "store". So when the player have coins, they can buy something.

    but: what i can't do is, i can't adding the coins to the store.

    My question is. How do you add current coins to Total coins?

    Example:

    When the player play, he gets 50 coins. And the next time he play he gets 30 coins. So, it should be 80 coins in the store.

    Please Help @tatiang‌ @Socks‌

    @bjandthekatz‌ thanks for the template. but i still can't figure it out.

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Change game.coin to game.coin +1. Save attribute.
    When you enter the shop Load the attribute. That is how the shop is set up.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Here's a demo for you.

  • remoncingkesremoncingkes Member Posts: 26

    hmm i exactly did that.

    The highscore system works for me. But not this coin system :(

    i don't know why.

    but anyway, thanks for the answer and the demo

    @tatiang‌ @bjandthekatz‌

  • remoncingkesremoncingkes Member Posts: 26

    @tatiang‌ @bjandthekatz‌

    hiii.. i think i found the answer. Its because i put the reset game instead of change scene.

    i have 2 score system. 1 by self.motion and the other 1 is coin system.

    So, here comes the other problem. If i put change scene instead of reset in. The score i make "the one with self.motion" it won't reset to 0 when the player replay.
    It will start at the place he died.

    Is there any way?

    Sorry Sirs. I ask too much :(

    this is my first project. and its been 4 months now :(

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Are you changing his score to 0 when you restart the game? Do you wan to post your rules or upload your project?

  • remoncingkesremoncingkes Member Posts: 26

    /Users/cingkesfamily/Desktop/Screen Shot 2014-07-10 at 6.51.55 PM.png

    what you mean changing his score to 0 when restart? how do you do that?

    @bjandthekatz‌

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Upload it to imgur.com and post the direct or HTML link here.

    Change self.motion to 0 when you start the game.

  • remoncingkesremoncingkes Member Posts: 26

    @bjandthekatz‌ how do you post picture here. ahah I'm so stupid.!

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    edited July 2014

    @bjandthekatz said:
    Upload it to imgur.com and post the direct or HTML link here.

    Or drag it into your post.

  • remoncingkesremoncingkes Member Posts: 26

    @bjandthekatz‌ sorry for the language. not english lol

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Instead of resetting the scene you would change all of your attributes back to their original form along with everything in the scene.

    So, here comes the other problem. If i put change scene instead of reset in. The score i make "the one with self.motion" it won't reset to 0 when the player replay.

    It will start at the place he died.

    Can I see these rules? Have you tried to change that score to 0 when starting the game?

Sign In or Register to comment.