Layering Issues [SOLVED]

Get help using Construct 2

Post » Thu Nov 08, 2012 2:54 pm

I am working on a sniper game (Capx here) in which the player shoots things, obviously.

However I have come to a stand still. After messing around with the layering to make sure that the enemies are underneath the scope, but the bullet holes are above the enemies I am now unable to kill the enemies, they remaining there after shot.

I know it has something to do with the layers because I am able to kill them when they are ABOVE the scope (Which they need to be underneath)

If anyone can help, it would be greatly appreciated.EncryptedCow2012-11-08 20:04:25
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Thu Nov 08, 2012 6:20 pm

Event 3: Left mouse clicked and CanShoot = 1, set CanShoot = 0.
Event 13: CanShoot = 0 now so this event wont run.

Solution:
Put event 13 before event 3. Or make the 'sniperpoint overlapping enemy' bit a subevent of 3 (before the wait actions).
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Thu Nov 08, 2012 7:59 pm

Thank you! I wasn't aware that positioning like that mattered, but looking at it now it makes sense .

I guess it didn't Have anything to do with the layers :/EncryptedCow2012-11-08 20:01:41
B
40
S
12
G
7
Posts: 603
Reputation: 7,646


Return to How do I....?

Who is online

Users browsing this forum: Draconinho, LeFuji, plinkie, totoe, Yahoo [Bot] and 19 guests