Gameobject variable

Get help using Construct 2

Post » Mon Aug 01, 2016 5:37 pm

How I can store an instance of an object in a variable, so I can assign, replace it on the fly and get instance object properties (coordinates...) directly in the Event sheet ?

Thanks.
Image
B
6
S
2
Posts: 42
Reputation: 538

Post » Mon Aug 01, 2016 6:10 pm

You can't.
You can use those variables to store its information however.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097

Post » Mon Aug 01, 2016 6:37 pm

But I want also to modify the instance in question coordinates on the fly. Can it be possible ?
I was programming in C#, with Unity, gameobject variable is very useful.
Image
B
6
S
2
Posts: 42
Reputation: 538

Post » Mon Aug 01, 2016 7:02 pm

Yes, most anything 2d can be done.
It may not work the way you expect it to though.

You should check out tutorials in picking and instances.

The how to section is also helpful.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests