Setting values for an object created by an expression

For questions about using Classic.

Post » Sun Jan 30, 2011 6:52 pm

I've got an object that I create based on a value from an array, it's also supposed to set the objects angle and filter. Rather than creating a different event for each different objects or tiles, I figured it would be easier to just grab the Object ID and create one event to handle all the different objects. It creates the right object, the only problem is that there is no way to use that same expression to change the angle and filter value. I would set a private variable to change the values from there, but the only issue is I won't be able to access that correct item on the array. Any ideas?
B
2
S
1
G
1
Posts: 38
Reputation: 676

Post » Sun Jan 30, 2011 9:49 pm

Nevermind, I've got it. It was a matter of creating a separate object to hold the values, then out of the loop if that object was colliding with one of them, it set it the values to the created object and destroys the temp object.
B
2
S
1
G
1
Posts: 38
Reputation: 676


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests