How do I destroy family but spawn 1 character

Get help using Construct 2

Post » Sat Jul 18, 2015 10:41 am

So I have multiple character sprites outside my layout and when certain action is finished( in this case fade out) I destroy my family which has 13 character sprites. Next thing I do is spawn one of the characters to a certain location. I do this to save memory because I dont want all of 13 sprites to play animations outside the screen...The problem is, my character is spawned but Its not moving or doing any animations...
I would need to destroy the family but leave 1 sprite undestroyed
B
10
S
1
Posts: 39
Reputation: 588

Post » Sat Jul 18, 2015 10:45 am

The way you are explaing it, it should work, if you have the right behaviours attached and the animations set on..
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 Jul 18, 2015 10:54 am

It has all the animations and behaviours but its not doing any actions....I cna see it on the screen but its like hes not there actually...Is there a way to destroy certain sprites inside the family and leave the others?
B
10
S
1
Posts: 39
Reputation: 588

Post » Sat Jul 18, 2015 11:04 am

Well you could do something like first set a global variable to the uid of the one you'd like to keep, than add a condition family.uid is not global variable > family destroy..

I'm not sure if it would solve your problem, though..
Your character not doing any actions, sounds more like an event-sheet problem, unrelated to the destroy action.
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 Jul 18, 2015 11:10 am

A screenshot of code could help to find/solve the problem. (or a capx)
Image Image
B
26
S
15
G
143
Posts: 882
Reputation: 74,562

Post » Sat Jul 18, 2015 11:51 am

I found the problem...
"trigger once" did the trick... thanks for your help ;)
B
10
S
1
Posts: 39
Reputation: 588


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests