Persistent Coin Pick Up

Discussion in 'How Can I...?' started by michaelfriel1988, Feb 7, 2017.

  1. michaelfriel1988

    michaelfriel1988 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    76
    Likes Received:
    8
    Hello,

    I'm wanting to create a coin pick up in my game that is persistent so that it can be collected multiple times. Is this possible? or anyone knows of a way to do this?

    Currently, once you've collected a coin that action disappears so it can't be used again.

    Help much appreciated
     
  2. andre_sprs

    andre_sprs Serious Boxer

    Joined:
    Sep 30, 2015
    Messages:
    844
    Likes Received:
    402
    Have you tried increasing the duration of the Coin? If you want it to show for a long time than make the duration 999999
     
  3. michaelfriel1988

    michaelfriel1988 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    76
    Likes Received:
    8
    Hey Andre,

    Yes I tried that, which makes the coin stay there once collected however once you touch the coin a second time its doesn't reward you with another coin :(
     
  4. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Not sure if this will work, haven't tried it. But you can try placing your coin in the coin animation, set to replace power up.

    You will need to copy the coin from game scene (command-c) then paste it in the animation box (command-V)
    as i said haven't tried it but might work.
     
  5. michaelfriel1988

    michaelfriel1988 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    76
    Likes Received:
    8
    HI Playsgames,

    Thanks for your reply, this method kind of works the problem is that I need it to be persistent so that the coin is always obtainable. This method works only twice If I create a loop between the coins Buildbox crashes :(
     
  6. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Dam. when i get a chance i will see what i can come up with.... Might not be able to get to work, but ill give it go...
     
    Christoph likes this.
  7. michaelfriel1988

    michaelfriel1988 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    76
    Likes Received:
    8
    Awesome, really appreciate the help.

    I'm trying myself at the moment, will post here if I find the solution :)
     
  8. michaelfriel1988

    michaelfriel1988 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    76
    Likes Received:
    8
    Ok, I think I've got it to work...

    I've created an enemy with high health and 0 damage, pasted the coin action into the 'take damage anim' and added damage to the character so that when the enemy takes dmg it spawns a coin.

    Seems to have done the trick :D
     
    FranciscoBala and playsgames6666 like this.

Share This Page