How do I Simplify this code.

Get help using Construct 2

Post » Mon Mar 07, 2016 2:45 pm

Hey there, Just looking for some help creating a much simpler version of this coding (1), essentially it assigns one object to the other objects location based on both having the ID variable with matching numbers lets call it a 'Grouping' mechanism, for clarity. one is a trigger the other is an asset that moves.
As you can imagine it's not very efficient to keep creating the same lines of coding over and over but rather would be better to have a system that just matches up both numbers.

(1)
http://i.imgur.com/f60xXwA.png?1

Thanks for you're Time and Patience.
B
6
S
1
Posts: 51
Reputation: 525

Post » Mon Mar 07, 2016 3:19 pm

for each gem collision
pick platform by comparison platform.Id = gem.id
> gem set position to platform
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Mar 07, 2016 3:31 pm

Thank you very much , but would it be possible to have a Image of this as i am not sure what you are refering to on the Second line.

Thanks.

PS actually no worries , got it to work , Thank you very much for your help.
B
6
S
1
Posts: 51
Reputation: 525


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, Cryptwalker, Google [Bot] and 54 guests