platform game code
Hi guys - Been playing super mario bros with the kids (for them of course). I'm a amateur coder but pretty clued up on AS3 - just not with gaming concepts.
I would like like to create a platform game - character jumps, climbs etc... onto platforms over objects etc...
Most coding is quite easy BUT the jumping onto the platform - has anybody got a tut out there. Been googling but fed up with so many bad tuts.
Just a bit of code for hero to land on platform.
Suppose I would just hittest and equte the x coordinates of each etc... But how do I get the hero to stand on the platform not.
Would I just stop the hero falling ie: where the hittest occurs is where the hero will stand. Would that code sit on the hero or on the platforms.