Copy link to clipboard
Copied
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.
it will not cost you much time to learn box2d, specially with WCK.
Copy link to clipboard
Copied
Best would be you taking a look at box2d:
Alchemy Port of the Original BOX2D: http://www.sideroller.com/wck/
Original port of BOX2D AS3: http://box2dflash.sourceforge.net/
Copy link to clipboard
Copied
Hi - this is too difficult for me as I am an amateur coder.
I would have preferred advice along the lines of x and y positions ie: hitTest on their coordinates and produce an event which seems pretty easy. Don't see why I would need to learn a whole new engine like box2d. I am only looking to knock up a simple platform game - not even scalable.
Copy link to clipboard
Copied
it will not cost you much time to learn box2d, specially with WCK.
Copy link to clipboard
Copied
OK thanks, I'll try that and I suppose I will learn a lot more.
Cheers
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more