How do I destroy an instance rather than an object?

0 favourites
  • 4 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • I am trying to learn how to use this platform and in doing so I have created a game with the goal of letting the player hit as many objects on the display as possible as they show up on the screen. As time goes by, more and more concurrent objects are shown on the screen. They are all created using "Create Object <object>" at a random position on the screen.

    Everything works fine, well, everything except for one thing: When an object is hit, not only that object is destroyed, but also all other objects of that type visible on the screen during that specific time.

    How do I avoid this? Is it possible to destroy an instance rather than an object, e.g. "Destroy this" or "Destroy self", in any way? If not, how do I fix this problem?

    Thank you!

  • Your problem is most likely your picking, meaning you are not picking the correct object to destroy, therefore it destroys all of them.

  • i have it set to player on collision with ledge the player will set animation to "glide" which is only one frame but the player stays on ledge and moves with the background

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you try to post a screenshot of the code?

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