Set Object 1 [boolean] to Object 2 [boolean]

Discussion and feedback on Construct 2

Post » Sat Aug 10, 2013 6:08 am

Right now, setting an instance boolean variable is limited to toggling the true/false value of the variable. But I'd like to see a feature where I can set the boolean of one instance variable to the value of another boolean instance variable.

For instance...
Object 1 hits object 2. Both have a boolean instance value "is hit". Upon object 1 registering there is a collision, its "is hit" boolean changes to "true". Object 2 (for whatever reason) checks the value of Object 1's "is hit" (now "true") and says "set Object 2 'is hit' to the value of Object 1 'is hit'".

This way it works just like other variables where Variable1 can set its value to whatever Variable2's value is (be it string or number).

Can we do this?
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
Posts: 770
Reputation: 14,596

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests