Two objects overlapping 2 instances

Get help using Construct 2

Post » Sat Aug 04, 2012 9:26 am

Hi folks, i'm having a trouble with my game.

What i want to achieve is:
"Red overlapping instance 1 of Orange"
& "Green overlapping instace 2 of Orange"
------>> do action.
Please check my capx:
https://dl.dropbox.com/u/48963688/Capx%20only/overlapping.capx

I tried "for each Orange" but still not work. :[
B
35
S
9
G
5
Posts: 174
Reputation: 5,916

Post » Sat Aug 04, 2012 10:46 am

I gave Orange an instance variable

https://dl.dropbox.com/u/53374990/overlapping.capx

People have been saying they can't download from my dropbox.. if that's the case for you, then try in firefox, otherwise I'll just write down what I did here.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun Aug 05, 2012 4:49 am

Thanks @keepee

Now i have a bunch of oranges, and the player will put Red&Green to whichever orange they want. I have to change it from your idea using variable, with 5 separated events.

If Red overlapping Orange ==> set variable a to 1

If Red not overlapping Orange ==> set variable a to 0

If Green overlapping Orange ==> set variable b to 1

If Green not overlapping Orange ==> set variable b to 0

If a=1 and b=1 ===> do action

It's weird that i have to workaround for a simple thing like that.
B
35
S
9
G
5
Posts: 174
Reputation: 5,916

Post » Sun Aug 05, 2012 6:16 am

@01lifeleft

Here's a simpler way brah
https://dl.dropbox.com/u/53374990/overlapping02.capx

Also I think I may have found a bug in the .pickedcount expression.
To anyone reading: check the disabled events in the cap above.. It doesn't seem to go below 1... I'm fairly certain this isn't right.. Can anyone else confirm?
B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: GSquadron and 25 guests