Collision Detection Doesn't Work

Bugs will be moved here once resolved.

Post » Thu Sep 19, 2013 7:57 am

Link to .capx file (required!):
http://c2.xhelos.com/invasion_nocollision.capx

Steps to reproduce:
1. Press spacebar to shot the laser


Observed result:
The laser just pass the floor

Expected result:
The laser should explode in collision with the floor


Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 7 SP1

Construct 2 version:
Construct2 r139    
B
10
S
2
G
1
Posts: 48
Reputation: 1,265

Post » Thu Sep 19, 2013 9:29 am

There is no bug, that I can see. You should really take the time to look at the manual and tutorials, and load the templates that come with C2. They are a great source of learning material.

The first problem is that your Layout uses the 'Control del Ovni' Event sheet, but the event sheet that handles collisions isn't even included. Press Right mouse and select 'Include Event Sheet'.

Secondly, The collisions sprite box 'Wall' just needs to be extended along the floor and collisions happen as expected, or change the collision event sheet to check for collisions with the FloorBackground object.zenox982013-09-19 10:05:04
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Thu Sep 19, 2013 1:56 pm

You're using two sheets of active single event and control the UFO movement and no collisions. Put all events on a sheet or sheet adds collision events to the motion.
B
42
S
8
G
5
Posts: 52
Reputation: 6,914

Post » Thu Sep 19, 2013 4:09 pm

Closing as not a bug. The event sheet with the collision events is not included on the layout's event sheet.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Thu Sep 19, 2013 4:38 pm

Wow, well that's seems to be the Problem, I didnt add the Event Sheet on my layer, well seems a lil noob here hehe.

Thanks for taking the time answering me!. Well if anyone was having this problem, here's a link to include more event sheet to a layer: https://www.scirra.com/manual/82/includes

I really appreciate you answers, and yes it's wasnt a bug after all!
B
10
S
2
G
1
Posts: 48
Reputation: 1,265


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests