Make An Object Start To Move After Collecting A Coin?

Discussion in 'How Can I...?' started by AaroArts, Jun 14, 2017.

  1. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Hey everyone.

    So, I have an object in my game that I want to move.

    But I don't want it to start, until I've collected a nearby Coin.

    Is there any way to achieve this?
    Thanks :)
     
  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Have you tried with advanced move?
     
  3. runrollgames

    runrollgames Boxer

    Joined:
    Jan 14, 2016
    Messages:
    77
    Likes Received:
    27
    Use [Wake up] - [Distance]
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Thanks for posting.
    How would you use an Advance move for this?

    Also, I don't think wake up would work, because if I didn't collect the coin, the object would still move :(
     
  5. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    put an invisible object under the coin, and connect the invisible object to the object you want to move. set the invisible object to go where you want it too.
     
    meremy likes this.
  6. Zatacka

    Zatacka Boxer

    Joined:
    Jun 13, 2017
    Messages:
    7
    Likes Received:
    2
    I would make an invisible object with no collision shape nearby the coin and make it wake up. Then link the invisible object to whatever you want to move on the other side if its far away
     
  7. Zatacka

    Zatacka Boxer

    Joined:
    Jun 13, 2017
    Messages:
    7
    Likes Received:
    2
    Oh didnt see you already replied the solution haha chears
     
    playsgames6666 likes this.
  8. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    How so?
    I'm not sure I understand how the object would start to move, using this?
     
  9. Zatacka

    Zatacka Boxer

    Joined:
    Jun 13, 2017
    Messages:
    7
    Likes Received:
    2
    Its just a theori, havent tried it myself yet but when you make the invisible objekt more anything linked to it should move in the same direction not matter how far away it is. It has to be in the same scene level tho
     
    meremy likes this.
  10. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Thanks everyone.
    This worked. I've been searching and trying so many things for ages.

    Basically I made the invisible object the same size as the coin and placed it underneath with a Collision Based Wake Up, so when you collect the coin, you collide with the invisible object and it moves along with what it's connected to.

    Thanks again :D I really appreciate it :)
     
  11. Zatacka

    Zatacka Boxer

    Joined:
    Jun 13, 2017
    Messages:
    7
    Likes Received:
    2
    Am a noob haha but glad i could help, u mind importing an image of how it all looks like now?
     
  12. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826

    Well I can't really show the game, but I made a new example using a preset.

    Basically, in this example, the platform doesn't move up until the coin is collected.
    Once collected, the platform will move into place.

    See BBDoc for working example :)

    [​IMG]
     

    Attached Files:

  13. Zatacka

    Zatacka Boxer

    Joined:
    Jun 13, 2017
    Messages:
    7
    Likes Received:
    2
    Alright glad it worked out. Ill be following for final product
     

Share This Page