00:00
00:00
Newgrounds Background Image Theme

Silverstone2300 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Reviews for "Platform Game Tutorial"

best tutorial ever

the graphics did well for what they were intended. They were quite slick and professional looking. The tutorial was great. I sulute you on that part of it. I am glad it stuck on the portal. I hope many people see it. I am sure it will be a great help to those wanting to make games. I wish the administrators at NG would make a section just for flash tutorials that are really good like this one.

Great tutorial BUT....

I seem to be getting the same error as the reviewers below me, the guy doesn't stop on the platform, something's wrong with your hittest, I even tried changing your script around a bit, changing the instance names and such. No dice. I put a good amount of work into this game, trying to make the animation smooth, the charater look decent. And it's just frustrating to have all that work go to shit, because of some error in the AS. I mean, I bet there ISN'T an error in the AS, I bet I'm just being a dumbass and doing something wrong, still...

If you could help me, and everyone else out here. That'd be fucking great.

Hope to hear from you soon.

Top-notch tutorial.

This is easily the very best platform game tutorial I've seen here on Newgrounds. I've seen a lot of the weaker tutorials, but I've been able to figure out better ways of designing a platforming engine than they could provide.

I haven't made any games yet, but I just finished my platforming engine a couple of days ago. My code is similar to this tutorial's, except that the code for jumping physics in this tutorial is superior.

There are only a couple of things I didn't like about the techniques in this tutorial. I don't care much for putting platform code in the player. I like to put the code for platform behavior in an instance in the symbol for each platform. This way I can place several platforms without having to name each instance of them. Even so, your method works very well. Additionally, I don't really put any code in the player except for stop(). I put all the code for player behavior in an invisible controller object and name all of the animation frames for the sprite to be used as the player. That way I can interchange any sprite with labeled frames and name the instance "player", and I don't have to alter (or even copy and paste) code.

Despite my personal preferences, I'd say that this is by far the best platform game tutorial I've seen.

Dude, thanks a lot!

You rock, dude!
This helped me a lot!
Could have had better design, music and "back"- buttons.
ANYWAY, great job, I submittet it to collections!
I think I'll send my game to you when I'm done.
Hats of to you, my good sir!

.M.

FIX

okay, at the starting it was messed, but I figured it out. new code for the PLAYER

_____________________
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity += gravity;
_y += velocity;
}
for (i=0; i<99; i++) {
if (this.hitTest("_root.platform" +i)) {
platform = eval("_root.platform" +i);
}
}
if (this.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(Key.LEFT)) {
this.gotoAndStop(1);
_x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
this.gotoAndStop(2);
_x += speed;
}
if (Key.isDown(Key.UP)) {
if (falling == false) {
velocity -= 20;
falling = true;
}
}
}
______________________________

that fixed it for me. hopefully it will help :)