Author Topic: Quick Question - best way to do ramps?  (Read 969 times)

ExpertNovice

  • Active Member
  • ***
  • Posts: 124
  • Karma: +0/-0
  • Now we're cookin' with bacon!
    • View Profile
Quick Question - best way to do ramps?
« on: Sat, Jun 18, 2011 »
Whats the best way to implement 45 degree ramps in a platformer?  Like an isosceles right triangle.

Can Tilemap support this or what?  Maybe I should get that pixel perfect collision thing... Flixel Power Tools I think its called?

Ryusui

  • Member
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Quick Question - best way to do ramps?
« Reply #1 on: Sat, Jun 18, 2011 »
FlxCollision's pixelPerfectCheck function doesn't support tilemaps. Sorry.

(But it's got a lot of other fun stuff to play with. :3)

zadvornykh

  • Active Member
  • ***
  • Posts: 205
  • Karma: +1/-0
    • View Profile
Re: Quick Question - best way to do ramps?
« Reply #2 on: Sat, Jun 18, 2011 »
There is a post on this forum somewhere with a custom tile map class that supports ramps.

Do a search for slopes.