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
61
S
19
G
6
Posts: 809
Reputation: 9,028

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
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

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
61
S
19
G
6
Posts: 809
Reputation: 9,028

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
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Dec 15, 2011 11:28 pm

your the pro

for each.., just to be sure :)
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

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
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests