How to destroy group of objects ?

Get help using Construct 2

Post » Mon Apr 23, 2012 10:29 pm

Hi,

Im creating a game where I want all sprite objects that have fallen to the ground to disappear when the player reaches a certain score ? I tried working with variables and booleans but I cant seem to manage having a group of objects being destroyed.

Is there a way this can be done ?

Thanks a lot !

Jana
B
4
Posts: 17
Reputation: 434

Post » Mon Apr 23, 2012 10:42 pm

I wouldn't like to explain how to do it, why don't you upload your .capx here? then let's see i can fix it.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Thu Apr 26, 2012 4:38 pm

Hi,

very sorry for the very late reply. Below is a short and stripped version of the game Im trying to make, dont mind the graphics or the setup or anything else its just for testing.

http://db.tt/c44mNuQW


What Im trying to get at is that when a player hits and destroys two pink boxes, one pink box that has fallen to the floor dissapears. Any idea how to do that ?

Thanks a lot either way,

Jan
B
4
Posts: 17
Reputation: 434

Post » Thu Apr 26, 2012 9:30 pm

Here's how I would do it, with a global variable and an instance boolean:

DestroyRandomBlock.capx

Also, I changed a few of the behaviours. I used "bullet" and "destroy outside layout" for the bullets, and "physics" set to "immovable" for the ground.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Apr 27, 2012 8:40 am

Ok Thanks a lot. Didnt think about a global variable and the "system" functions. Thanks a lot !
B
4
Posts: 17
Reputation: 434


Return to How do I....?

Who is online

Users browsing this forum: Muini and 29 guests