How do I Remove a number of instances? [SOLVED]

Get help using Construct 2

Post » Sat Nov 28, 2015 8:40 pm

Hello! Can someone help me? I want to delete a number of instances of an object.... tried for loop but didn't work... :-(
Last edited by mikelantzelo on Sun Nov 29, 2015 6:38 am, edited 1 time in total.
B
12
S
1
Posts: 61
Reputation: 711

Post » Sat Nov 28, 2015 8:44 pm

What are the conditions for removing the objects?

How many objects do you want to delete and why?
Which objects should be deleted, how to know?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Nov 28, 2015 8:53 pm

I have 100 instances of gas atoms moving in a box... I want to delete random 20 on button click. I give you .capx file

https://www.dropbox.com/s/z5n7yf51k3j8j ... aproj?dl=0
B
12
S
1
Posts: 61
Reputation: 711

Post » Sat Nov 28, 2015 8:57 pm

Something like this?

on button clicked
--repeat 20 times
--pick random instance of gass
> gass destroy
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Nov 28, 2015 8:58 pm

yep... i tried something like that in .capx file... but it is not working...
B
12
S
1
Posts: 61
Reputation: 711

Post » Sat Nov 28, 2015 9:00 pm

Something like that, or exactly that?
For this event should work..

You shared a .caproj and not a .capx, so I can't see..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Nov 28, 2015 9:02 pm

Last edited by mikelantzelo on Sat Nov 28, 2015 9:06 pm, edited 1 time in total.
B
12
S
1
Posts: 61
Reputation: 711

Post » Sat Nov 28, 2015 9:04 pm

You should put the conditions in that exactly order, or else it will not work.
Winstratos on:

Twitter
Facebook
Tumblr
B
12
S
5
G
1
Posts: 23
Reputation: 1,602

Post » Sat Nov 28, 2015 9:08 pm

Tried this too... but same result..
https://www.dropbox.com/s/2zcrfdkod5zeu ... .capx?dl=0
B
12
S
1
Posts: 61
Reputation: 711

Post » Sat Nov 28, 2015 9:10 pm

Can't open the capx, because you are using plugins I don't use, but like I said, the event I posted should work..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: bikachu, ikazuchi, irwandwiyanto, thatserafimkid, Yahoo [Bot] and 2 guests