Check vars when instances of same object collide?

Get help using Construct 2

Post » Thu May 09, 2013 4:49 am

can't you do

On Collision Monster with Monster
-- Compare Two Values( Monster(0).X > Monster(1).X )
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Thu May 09, 2013 5:11 am

edit: Read it wrong. thought it was player and planet. not planet and planet.OrangeTapioca2013-05-09 05:15:52
B
40
S
10
G
5
Posts: 102
Reputation: 6,602

Post » Thu May 09, 2013 6:20 am

I have used this in a project recently, it is what you had in mind?
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Fri May 10, 2013 2:15 am

I'm getting a 400 error on that link, could you reupload please?
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

Post » Fri May 10, 2013 4:39 am

@jayderyu
That won't work. As Ashley has stated in the past, Indexing by IID is not limited to the SOL (list of selected objects).

See my earlier response to this thread for workarounds.
B
30
S
6
G
8
Posts: 232
Reputation: 6,119

Post » Fri May 10, 2013 4:58 am

@cacotigon
le sigh. this is C2 weakest part. The fact that events are not bound to an object. I know in standard programming for objects. They all have there own functions. oh well :P we will work around it :)
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Fri May 10, 2013 6:42 am

@ChrisAlgoo: me? Try this link
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Fri May 10, 2013 12:03 pm

I was referring to @vee41, but thank you!
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

Post » Fri May 10, 2013 12:51 pm

[QUOTE=ChrisAlgoo] I was referring to vee41, but thank you![/QUOTE]

Fixed it, shows pretty much the same thing people posting after me did :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,202

Post » Fri May 10, 2013 3:11 pm

Thanks everyone! I think we can all agree that working around this requires some hella inelegant stuff. I'll ask Ashley to do... something to make it easier. I'm not sure what, but he's the genius programmer here so hopefully he can find something!
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Colorfish, MarkThomas and 29 guests