How Can I Make Object/enemy Appear For .. Amount Of Time And Then Make It Dissapear?

Discussion in 'How Can I...?' started by otkat, Apr 6, 2017.

  1. otkat

    otkat Boxer

    Joined:
    May 31, 2016
    Messages:
    28
    Likes Received:
    1
    Hi,

    I want to make this:

    - make and object/enemy/etc appear for (let's say) 2 seconds.
    - after 2 seconds it disappears.

    Also, it needs to be appear either 1) at a specific set of time 2) or at a random time during the game.

    Is that possible to implement somehow?

    Thanks,
     
  2. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    What if instead of making the object disappear you just make it leave the screen? you can put an object / enemy outside the viewing area of the game with a trail to be followed - activated / triggered by distance or by collision with the character.
    A cool way of doing it is by placing a random object in your game (let's say a square of a small size) and set its opacity to 0.01 (so it cannot be seen by the player) but when your character collides with it, it can trigger the action on another object (using the connectors) - you can do this by adding a wake up option in that square that will make it awake when colliding with the character.

    I hope this helps you!
     

Share This Page