simple variables question using Construct2's UI

Get help using Construct 2

Post » Wed Nov 06, 2013 3:21 am

hi all

i've got two objects based on the same sprite.

each has it's own value, "Object1" and "Object2"

how can i code these to perform two different actions, as in what Event or Condition/s would i use? in the Flash world, i would write something like <if foo = "object1", do this, else do that> -- but this business of clicking on buttons to write code has me all thumbs when devving on this tool.

thanks!

rob
B
4
Posts: 10
Reputation: 220

Post » Wed Nov 06, 2013 3:48 am

<object.compare instance variable = your var, do something
<else, do something else.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Wed Nov 06, 2013 6:08 am

thanks Sargas -- i'll check that out
B
4
Posts: 10
Reputation: 220


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct, Username05 and 31 guests