Page 1 of 1

Collide with Tiles or Regions

PostPosted: Fri Jun 17, 2011 4:09 pm
by foleyjo
Sorry for creating numerous threads but I think some answers I get will help others and get missed if I put them all in the same place.

Anyway I was wondering if in a platfrom game it is better to use the collide option with tiles or a wireframe or filled region.

I have been using tiles for the floor but have found that an overlap on the tiles makes the floor unstable and the player falls through.
So is it better practice to have the tiles for the image and then surround the walkable area in a wireframe/filled region

Re: Collide with Tiles or Regions

PostPosted: Fri Jun 17, 2011 5:47 pm
by Hblade
You can do that, or create another base of tiles (just a solid white block representing land), then go to Create Actor - Visibility State - Don't draw but allow events

Use these white tiles to make the ground, and setting the visibility state to dont draw but allow events will not show the white tiles, but will act as land.

Re: Collide with Tiles or Regions

PostPosted: Fri Jun 17, 2011 6:18 pm
by foleyjo
OK theres a third option.. but which would you say was the better option

I'm thinking using the region method would be best for walls and floors but using one of the tile methods would work better for stairs.


I don't want to get to nearing completion and then discovering I've used a stupid method hand have to go and change everything :lol:

Re: Collide with Tiles or Regions

PostPosted: Fri Jun 17, 2011 9:48 pm
by Hblade
hmm, I'd go with the tiles all together, but for a long floor you should add a filled region

Re: Collide with Tiles or Regions

PostPosted: Sat Jun 18, 2011 11:41 am
by lcl
foleyjo wrote:I have been using tiles for the floor but have found that an overlap on the tiles makes the floor unstable and the player falls through.

No, an overlap doesn't make it unstable, I bet you have your collision event not repeated and when player is still colliding on some side, the other collisions are not noticed and he can fall through the floor. Set repeat to yes in your PhysicalResponse collision event with floor. :)

Re: Collide with Tiles or Regions

PostPosted: Sat Jun 18, 2011 12:12 pm
by foleyjo
I have it set to repeat.

I've just been finding that if you jump and then land where the tiles overlap you fall through the tiles.

Now for what I'm doing I only have the physical response if you collide with the top of the tile so I'm guessing from what you said that this might have something to do with it