forget picking

For questions about using Classic.

Post » Sun Apr 05, 2009 9:33 pm

is there a way to force forgetting of picking without it being a crazy workaround
like I click on a sprite
first I want to perform a function on that particular sprite
then I want to destroy all instances of that sprite
so in between those two, I want to forget the picking
is there another way besides, making a subevent for each object?
actually, I just thought of that subevent for each object thing as I was typing my question
but might as well ask, is there a straight "forget picking" feature somewhere?
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Sun Apr 05, 2009 9:40 pm

Have you tried using the Function object to call a function and forget picked objects?

Using a subevent won't help, because subevents pick from the objects the parent event picked.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Sun Apr 05, 2009 9:42 pm

heh
yeah I just tried it and it indeed didn't work
and I was about to use that function technique
yeah, I'll try that
btw, I can't rightclick delete action
it's always greyed out
I have to hit the delete key, which isn't a big deal
just wondering if it's just me
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Sun Apr 05, 2009 9:49 pm

Another way to manage picking is to use families. Include objects you want to destroy in a family, and destroy the family in that event.
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Sun Apr 05, 2009 10:05 pm

tried that drasa
that just destroys the last family member that was picked
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Sun Apr 05, 2009 10:32 pm

I should work, at least it worked when I did it :P.

To make it clear: The action you are going to perform with sprite, should be done with the sprite itself. The destroy action should be done to the family. (Or the other way around, but it's easier this way)

This is because the sprite and the family have separate List of selected objects. When you are talking about family, construct no longer has the exact sprite you chose in the condition, picked.
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Sun Apr 05, 2009 10:41 pm

oh sorry
no I didn't realize
I wanted to be able to pick from a family
and destroy that family
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Tue Apr 07, 2009 4:11 am

[quote="Drasa":26yug2in]destroy the family[/quote:26yug2in]
:O
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Tue Apr 07, 2009 8:41 am

What :D? Did I say something funny?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Tue Apr 07, 2009 12:08 pm

"we're not just objects, and it was you who picked us, and now you're trying to destroy our family!"
-sprite2
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests