Object Instances and handling

Get help using Construct 2

Post » Fri Sep 06, 2013 9:07 am

Hi,

I have a small problem with my puzzle game I'm working on. You need to place some bombs on the playfield and then you need to press the play button to start the reaction (e.g. the bombs are exploding).

If I place one bomb everything is working fine, but if I place two or more bombs only the first one explodes. How can I handle every bomb by their own? I need to, specially because the have different timers (defined as instance variables) when they should explode (e.g. after 2 seconds).

Would it be possible that someone have a look at my capx? I really don't know how to handle it. :-(

https://www.dropbox.com/s/uw3dk8ztn2x6lqn/test.capx

Thanks in advance,

Bennydryas2013-09-06 09:14:19
B
6
S
2
Posts: 19
Reputation: 1,038

Post » Fri Sep 06, 2013 9:10 am

Can't access your file.
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Fri Sep 06, 2013 9:14 am

Changed the link, should work now...
B
6
S
2
Posts: 19
Reputation: 1,038

Post » Fri Sep 06, 2013 9:27 am

Suppose to be like this?

https://www.dropbox.com/s/b5zxjfjkaw4wwyf/dryas.capx

I added a for each loop on checking the counter for bomb and pass in the bomb uid to the function create explosion to pick the respective bomb.
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Fri Sep 06, 2013 9:39 am

Perfect, it works like a charm! ...and it helped me a lot to understand how it works. :-) Thanks!

Best,

Benny
B
6
S
2
Posts: 19
Reputation: 1,038


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, DarthPapalo666 and 23 guests