How do I code this part

Get help using Construct 2

Post » Fri Nov 20, 2015 8:27 pm

Ok im trying to set a location for my arrow to a particular object

The object has a variable that is = to the arrow variable

And basically I want something like set X position to Object.variable.X Is there a way to do this code right ?

because this will be a anchor style and the main game Is bigger then this layout layer which is global anyway.

I just want the game to auto find the X and Y for the object variable and I d like to do this in one line because there will be multiple objects
B
51
S
24
G
6
Posts: 391
Reputation: 7,820

Post » Fri Nov 20, 2015 8:34 pm

You mean something like this?

system for each arrow
system pick object by comparison object.variable is arrow.variable
> arrow set position to object
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sat Nov 21, 2015 4:11 am

well after fiddling around with teh system pick like what you suggested. I found a much easier method and it clean up the code correctly im sure i got way too many event but what ever work as long as it works lol.
B
51
S
24
G
6
Posts: 391
Reputation: 7,820


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Elliott, jakeedge02, OddConfection and 7 guests