i want an enemy (or other object) to eliminate coins!

Discussion in 'How Can I...?' started by robert_worthing, Nov 8, 2015.

  1. JustWatchApps

    JustWatchApps Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    315
    Likes Received:
    145
    Is there any way for a platform, enemy, or other object to 'defeat' a coin? The concept essentially is that a coin could be removed from the game field by something other than the character.

    Thanks!
     
  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    You can do that with Enemy object:

    On your Enemy make sure the Destroy Type is Destroy All:
    Screen Shot 2015-11-08 at 8.47.58 PM.png
    Add your Coin Type Action:
    Screen Shot 2015-11-08 at 8.48.52 PM.png
    Add another Enemy type, and make sure Destroy Type is set to No Destroy (I also set Damage 0, not sure if that necessary). I call this as Coin Holder for now:
    Screen Shot 2015-11-08 at 8.49.14 PM.png
    Connect your Coin to the Coin Holder - make sure you drag the line from the Holder to the Coin
    Screen Shot 2015-11-08 at 8.49.31 PM.png

    Drag the Coin to the exact same location as the Holder, right to its center:
    Screen Shot 2015-11-08 at 8.50.28 PM.png

    Now send back the Coin Holder so you will see the Coin, not the Holder:
    Screen Shot 2015-11-08 at 8.50.37 PM.png

    From now the Enemy should be able to remove the Coin, while your Character should be able to collect it if reaches faster than the enemy...
     
  3. JustWatchApps

    JustWatchApps Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    315
    Likes Received:
    145
    Wow, excellent! Much appreciated!
     
  4. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    Nice explanation @trudnai, look forward to trying this in a future game.
     

Share This Page