How do I destroy an instance rather than an object?

Just started using Construct 2? Post your questions here

Post » Tue Feb 10, 2015 2:35 pm

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!
B
4
Posts: 12
Reputation: 214

Post » Tue Feb 10, 2015 3:54 pm

Your problem is most likely your picking, meaning you are not picking the correct object to destroy, therefore it destroys all of them.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Tue Feb 10, 2015 5:58 pm

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
B
3
Posts: 4
Reputation: 183

Post » Tue Feb 10, 2015 6:03 pm

Can you try to post a screenshot of the code?
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests