Page 1 of 1

How do I Simplify this code.

PostPosted: Mon Mar 07, 2016 2:45 pm
by ryand444
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.

Re: How do I Simplify this code.

PostPosted: Mon Mar 07, 2016 3:19 pm
by LittleStain
for each gem collision
pick platform by comparison platform.Id = gem.id
> gem set position to platform

Re: How do I Simplify this code.

PostPosted: Mon Mar 07, 2016 3:31 pm
by ryand444
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.