Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I've been searching the forum for hours, but I can't find what I'm looking for. Maybe you can help me?
I want to set a variable from one instance to the same variable of the same instance it collides with. I can't figure out how to get the (variable) value from the last collided instance. Is there a way I could do something like: set VarName to Sprite(last collided).VarName ?
Thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.
This is easier with Families, but can be done with a bit more work without.
You need to pick the 'other' instance, store it's value, then pick the 'first' instance and set it's value to the temporary value.
Thanks for the quick reply, i'm going to give it a try
Thanks Blackhornet, the capx made it perfectly how to do it and solve a multitude of problems!
Lordshiva1948: Gonna look some more in the tutorial and get some better understanding Thanks!