Make A Coin Spawn Another Coin When It's Collected?

Discussion in 'How Can I...?' started by spacerain, Aug 19, 2017.

Tags:
  1. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    I'm trying to make it so that when the character collects a coin, another coin appears in another spot above where it was, and then when that coin is collected, another coin appears where the first coin originally was. Is there a way to do this? I'm not seeing a spawner option for the coin, which is an action.
     
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You can create an enemy with a spawner, copy the action in the death animation and every time it's defeated, you will score a point.
    Just make sure the point you copy into the death animation is invisible and is scaled 10x10 for example so it fills the screen.
    Just make the enemy look like a coin.
     
  3. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    But how do I make it spawn in a specific location on the screen? Is there a way to do that?
     
  4. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    Copy the coin Into a normal object .. than make the object asspwaner ... And as a physical obejct with spwan as you like ... I make this in a game ....
     
    Last edited: Aug 23, 2017
    Vikas, Christoph and AaroArts like this.
  5. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You can have it spawn wherever you like.
     
  6. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    But i make it with transform ... The Candys fall down and at the bottom is a transform and lets the candys come up again .. they are collected the Candy they dont spwaner no longer;)
     
    AaroArts likes this.
  7. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    That's really clever :D
     
    Phoebe likes this.
  8. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    I don't see a way to do that though. Under "Spawner" for the enemy the only adjustable options are "Spawn Rate" and "Spawn Action". How do I make it spawn another enemy/action in a specific part of the screen and stay there?
     
    Last edited: Aug 23, 2017
  9. SQUITTER

    SQUITTER Boxer

    Joined:
    Jul 23, 2018
    Messages:
    40
    Likes Received:
    3
    Still no solution?
     
  10. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
  11. SQUITTER

    SQUITTER Boxer

    Joined:
    Jul 23, 2018
    Messages:
    40
    Likes Received:
    3
  12. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    Check out this video. You will need to spend some time adjusting the spawn rate and path to suit your game.
     
  13. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    You will need to adjust the spawn rate to suit the time it takes for your character to touch the coin and spawn another. You may also have to play around with the velocity of the invisible spawner.
     
  14. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    If you carefully look at that video you may find that coins spawn immediately after the character collects the previous coin.There is a delay for 1st coin though.You could adjust spawn duration as @spicedbeangames mentioned.
     
  15. SQUITTER

    SQUITTER Boxer

    Joined:
    Jul 23, 2018
    Messages:
    40
    Likes Received:
    3
    Thank you guys :)
     

Share This Page