Collide with Tiles or Regions

Non-platform specific questions.

Collide with Tiles or Regions

Postby foleyjo » Fri Jun 17, 2011 4:09 pm

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
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score

Re: Collide with Tiles or Regions

Postby Hblade » Fri Jun 17, 2011 5:47 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Collide with Tiles or Regions

Postby foleyjo » Fri Jun 17, 2011 6:18 pm

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:
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score

Re: Collide with Tiles or Regions

Postby Hblade » Fri Jun 17, 2011 9:48 pm

hmm, I'd go with the tiles all together, but for a long floor you should add a filled region
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Collide with Tiles or Regions

Postby lcl » Sat Jun 18, 2011 11:41 am

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. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Collide with Tiles or Regions

Postby foleyjo » Sat Jun 18, 2011 12:12 pm

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
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest