need help

Get help using Construct 2

Post » Thu Dec 15, 2011 10:47 pm

yes, just dont create the opponents, the rest is the same

so ..

for each opponent create gun/arm and set its nr(var) to opponent uid
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Thu Dec 15, 2011 10:50 pm

i create exactly the same variable and the same events. but i dont know how fortunately place oponents on my map.
What i must change in your events?
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Post » Thu Dec 15, 2011 10:55 pm

again, use the system: for each - opponents

create gun and set var

the set position will then put the gun on the right opponent
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Thu Dec 15, 2011 11:09 pm

uidPicking.capx
vtrix no need for foreach to destroy one gun when you have the value of one of its variable. The picking isn't that weak :D
Also the nr variable for the enemy is redundant to its own uid.
UID doesn't change.Yann2011-12-15 23:10:08
Last edited by Yann on Sun Sep 14, 2014 10:47 pm, edited 1 time in total.
B
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

Post » Thu Dec 15, 2011 11:28 pm

your the pro

for each.., just to be sure :)
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Fri Dec 16, 2011 9:08 am

Yann Its very good example i wanted that Thank you! :)) Thanks vtrix for posting and helping!
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Previous

Return to How do I....?

Who is online

Users browsing this forum: blue visionary, David181, luckyrawatlucky, shawnzien and 6 guests