Remove object from family

0 favourites
  • 3 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Hi,

    How to remove object from family ? Or tell me the same function to solve my problem.

    Look at screenshot,

    <img src="" border="0" />

    When random sprite falling down to the Sprite (red) current sprite must be stopped and new random sprite from the family must be created on the top. Like tetris!

    But keyboard function and other things are active for ALL instances of Family1, but I need it's worked only with new created instances.

    I create Family1.Destroy function for testing, it's work fine, but I don't need deleting old instance because it must stay at the ground like physical object.

    I hope I explained my problem. Sorry for my english.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could a boolean variable to the family. we'll call it isfalling and set it to true.

    When the sprite reaches the ground set the variable to false.

    add a condition keyboard events

    family compare boolean isfalling is true

  • Awesome answer, it's very easy solution and it's works!!!


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)