Collision masks, solids & overlapping

For questions about using Classic.

Post » Sun Apr 01, 2012 4:29 am

Hi, this is probably something really simple, but it's driving me mad. I have a sprite that will function as a sort of elevator that the player can jump into - it is using a collision mask so that the player can sit 'behind' some of the graphic but not fall through the floor. The problem is that I can't seem to get the player and the elevator to recognize a collision. If I remove the 'solid' attribute from the elevator then the collision registers, but it also renders my elevator useless. I'm sure it's something basic, but what am I doing wrong here?

http://dl.dropbox.com/u/70305965/collisions.cap
B
47
S
16
G
3
Posts: 134
Reputation: 4,982

Post » Sun Apr 01, 2012 6:42 am

i think you should post this in (How do i...) section.

also the capx does not work i think
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sun Apr 01, 2012 12:56 pm

The player and elevator will recognize a collision only if the player's collision mask overlaps the elevator's collision mask. Sense the player and the elevator are both solid, they'll never overlap eachother's collision masks.
Try overlaping at offset Y=-15.
B
6
S
1
G
1
Posts: 69
Reputation: 1,019

Post » Sun Apr 01, 2012 11:01 pm

Thanks shadowlord - that did the trick!
B
47
S
16
G
3
Posts: 134
Reputation: 4,982


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest