Using expressions with newly created objects

For questions about using Classic.

Post » Fri Sep 03, 2010 5:03 pm

I didn't test this in a new .cap yet, but does anyone know if newly created objects can be picked in expressions correctly? For example: I create a sprite, then set its width, then add its width to a global variable. Is construct certain to pick the newly created object in the expression? I'm doing this, and it works, but is it just picking it because it's the newest instance? From what I remember, using the spawn object or system create actions filters the SOL to only the last created object, until the end of the event (or is it until the next action that doesn't have to choose the newly created object?), or until another create object action is called. I just need some professional clarification from the devs.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Mon Jun 04, 2012 10:22 am

hello.

i'm upping this post cause i have the same concern

B
1
Posts: 1
Reputation: 332

Post » Mon Jun 04, 2012 9:36 pm

After creating an instance of an object, it is the only selected instance, and using an expression will in fact work with the new instance and only that instance. The new instance will also stay picked for any subevents of that event.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests