Layers and Collisions

For questions about using Classic.

Post » Mon Jul 14, 2008 2:42 am

I've been experimenting with doing stuff based on objects overlapping objects in another layer and quickly came across something annoying.

When one layer is set say.. to not scroll (like an overlay/hud layer) and you move around on the game play layer, collisions only occure where the objects would be if the layers scrolled at 100%.

This doesn't seem right and I would guess it to be a bug, but theres also the possibility (as is common with construct) that it's intentional and I'm missing the setting that'll make it behave accordingly.
B
12
S
4
G
4
Posts: 238
Reputation: 2,426

Post » Sun Jul 20, 2008 10:31 pm

I'm pretty sure when it checks for collisions Construct doesn't look at where the layers are scrolled to, only the x and y coordinates of the objects.
B
2
G
4
Posts: 35
Reputation: 1,120

Post » Sun Jul 20, 2008 10:47 pm

I don't think it's made for collision testing between layers with diferent scroll values at all. I think it's beter like it is now then if it would collide where the object is on the screen.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Tue Jul 22, 2008 9:41 am

What possibly makes the current state more useful then it would be otherwise? Phantom collisions don't seem all that great -- as far as I can fathom, its pretty much useless save for some esoteric situaiton.
B
12
S
4
G
4
Posts: 238
Reputation: 2,426


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests