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
69
S
21
G
7
Posts: 824
Reputation: 10,011

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
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

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
69
S
21
G
7
Posts: 824
Reputation: 10,011

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
64
S
22
G
14
Posts: 1,482
Reputation: 16,457

Post » Thu Dec 15, 2011 11:28 pm

your the pro

for each.., just to be sure :)
ImageImage
B
69
S
21
G
7
Posts: 824
Reputation: 10,011

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
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

Previous

Return to How do I....?

Who is online

Users browsing this forum: basit7270 and 1 guest