The Daily Click ::. Forums ::. Klik Coding Help ::. Art tiles over collision tiles messing with collision?

Post Reply  Post Oekaki 

Posted By Message


16th April, 2009 at 00:41:27 -

For some reason my guy falls through the floor now that there is art tiles on top of the collision. What makes this happen? I'm using the Platform movement object and this is the only line of code I have for floor collision.(Platform movement object)test for obstacle overlap + (Hitbox) is overlapping backdrop? > selected object overlaps an obstacle

My art tiles are set to "Obstacle type" "none" and my collision tiles are set to "Obstacle type" "obstacle"

It makes sense that it would make me fall through since the hitbox collides with an obstacle labeled "none" but I thought "none" meant it didn't count collision one way or the other. I want my art tiles to be "codeless" if that makes sense, just pretty pictures being rendered.

Also there doesn't have to be a new solution for how to fix this I just want to know how everyone else handles this problem or if anyone has had this problem.

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome.

Follow me on the twitters


Cornwall UK


VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
16th April, 2009 at 01:16:26 -

Background objects are always "codeless", so I don't know what you're worrying about - just make the "art tiles" obstacles?
Anyway, the fix would be to bring the "collsion tiles" infront of the "art tiles", and make them invisible (ie. semi-transparency = 12. Like I said though, I don't see the point.





Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
17th April, 2009 at 00:38:13 -

Hmm, it sounds like you want your level to have collision masks separate from the actual level graphics.
The easiest way to do this is to put your graphics on a higher layer than the collision mask.

First create a new layer by clicking the plus sign on the layer toolbar (Use view\toolbars on the tool menu if it's not visible)

Then make sure that the X and Y scroll coefficients on the new layer are the same as the collision mask.
Also that the layer needs to be higher than your collision mask, but I'm sure you knew that already!


Post Reply



Worth A Click