Picking objects outside of SOL

For questions about using Classic.

Post » Thu Mar 12, 2009 3:40 pm

Is there any way to pick objects outside of the selected object list?
B
2
G
3
Posts: 75
Reputation: 1,000

Post » Thu Mar 12, 2009 4:03 pm

What do you mean?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Mar 25, 2009 8:00 pm

I mean - is there any way (other than using families) to access an instance of object which is not picked within given event?

For example:

[code:1q8w7lqu]
for each goal
if goal.name = "gRuminate":
// here we have one goal picked
// and now I want to pick another goal
// and use it within this event
[/code:1q8w7lqu]

How am I supposed to do that?
B
2
G
3
Posts: 75
Reputation: 1,000

Post » Wed Mar 25, 2009 9:34 pm

Families, containers, private variables, object pairer, plus a ton of other things, like color filter, collisions, offset, etc.
Also you can have multiple conditions for each event
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu Mar 26, 2009 1:10 am

The event engine fundamentally operates on selected object lists (SOLs). The best technique to deal with two separate instances in the same event (short of making them different object types) is to give the object a family, and use the family as a separate SOL.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests