Help me pretty please

Get help using Construct 2

Post » Wed Mar 13, 2013 12:30 pm

Hey guys ive got abit of annoying issue i cant work out. i have a creature of the screen which is the object that holds all my variables etc. so the problem is when i create these creatures i send them moving right and they overlap an object which i call fire zone which causes the sniper to attack them. but the problem ive got is that when they are overlapping the sniper shoots the creature off the screen and not the closest one in the overlapping area. please help this problem has completely stopped me in my tracks
B
9
S
1
Posts: 72
Reputation: 789

Post » Wed Mar 13, 2013 12:32 pm

Hi,
post a capx if possible so we can take a look.
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Wed Mar 13, 2013 4:10 pm

http://www.sendspace.com/file/7qx1hd

heres my capx file please help me :)darkrealos2013-03-13 16:34:20
B
9
S
1
Posts: 72
Reputation: 789

Post » Wed Mar 13, 2013 4:56 pm

Ahh... very simple. The Bullet onCreated is confused which zombie it should target. It will pick the last zombie that spawned.
Best is to set the bullet straight away after it was created, instead of on Bullet OnCreated event.

B
6
S
1
Posts: 11
Reputation: 934

Post » Wed Mar 13, 2013 4:58 pm

omg your a saint spent days trying to fix that ahhh working like a charm your a star tyvm really appreciate it
B
9
S
1
Posts: 72
Reputation: 789

Post » Wed Mar 13, 2013 5:15 pm

Hahaha, no worries. Glad I could help.
Anyway, just note that when you detect on collision, the object that involved with the collision will be the focused instance. All actions in that event will affect the two collided instances by default.
B
6
S
1
Posts: 11
Reputation: 934


Return to How do I....?

Who is online

Users browsing this forum: h1k3, LeFuji and 18 guests