Be a Supporter!

Platformer Collision AS2

  • 472 Views
  • 2 Replies
New Topic Respond to this Topic
RemminyCricket
RemminyCricket
  • Member since: Mar. 27, 2009
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Platformer Collision AS2 2010-12-07 20:43:55 Reply

I was wondering if anybody could point me towards some really good platformer collision tutorials. I've been going through AS:Main and many other tutorials for the past few months.

I want to try and make a platformer. Nothing fancy, just jump from point A to B. However it seems that I always run into collision problems with every tutorial I read.

I was wondering what method of collision I should use to avoid the following:

Bumping Slightly into walls
Floating or colliding when there is still room in between my MC and the object
Falling Through Floors
Clipping and Falling through corner

thanks for any help in advance!

Spysociety
Spysociety
  • Member since: Dec. 30, 2009
  • Offline.
Forum Stats
Member
Level 21
Blank Slate
Response to Platformer Collision AS2 2010-12-07 20:47:00 Reply

Well platformers aren't that hard, it is just you measure them.

GazSmithGames
GazSmithGames
  • Member since: Sep. 6, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Platformer Collision AS2 2010-12-07 22:45:03 Reply

its easy..

onClipEvent(enterFrame){
If(platformzorz == truez){
(graivty+collision+ground+items+othercoo lthings = true)
trace("yey its workin!");
}
}

that should work.. YEY