Instances

Get help using Construct 2

Post » Mon Nov 26, 2012 11:22 pm

Hello,
I am new to this forum however I feel like I have been here all day!!
I am working on a game idea and have a question.
I have several red balls that are the same object type. I can pin the instances separately but I cannot unpin them separately. Can someone show me the correct syntax to accomplish this. I have read the forums and tutorials but I simply cannot figure it out.

System->WhichPinned = "RedLight"
     Action RedLight Pin Unpin

what is the proper way to access the UID or the IID in an action?
I am putting the IID in array but cannot figure out how to a pin it from the array. I am very confused please can someone show me the correct syntax.
B
3
Posts: 4
Reputation: 733

Post » Mon Nov 26, 2012 11:40 pm

Look at the command For Each, it will probably help.

I'd guess something like
For Each 'Ball'
    If mouse is over/click >>> Unpin
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Mon Nov 26, 2012 11:46 pm

I'll give it a try. Thanks
B
3
Posts: 4
Reputation: 733

Post » Tue Nov 27, 2012 12:23 am

Well, still stuck here, so far I have
for each ball
    ball->is pinned
      ball->unpin

It's not working.
B
3
Posts: 4
Reputation: 733

Post » Tue Nov 27, 2012 4:13 am

Post a .capx and I'll take a look
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Wed Nov 28, 2012 12:41 pm

Got it the for each worked I just had to tweak it thanks
B
3
Posts: 4
Reputation: 733


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests