How do I change the context of the event sheet for a type

Get help using Construct 2

Post » Sat Jan 07, 2017 12:41 pm

Hey all,

I'm wondering if anyone has an idea on how to do the following:

A bit more detailed way of asking the question...

"How do I change the context of the event sheet to refer to a particular instance of an object type for actions that take place subsequently from a previous action?"

For example, there's an action that Spawns an object via the System actions. Once this action is called an object is created, subsequent actions related to that newly spawn's object's type will only relate to the context of the recently spawned object.

How do I do the same in a plugin action I am writing?

Thanks in advance!
B
9
S
1
Posts: 10
Reputation: 441

Post » Mon Jan 09, 2017 4:33 pm

You can use an instance variable with context ids. Then you can just do a "Pick by instance variable" on that given object and select all of the objects associated with a given context id.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski, Yahoo [Bot], zenox98 and 25 guests