Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Platform Game Tutorial


Date Submitted

12/25/2004 | 01:11AM EST

File Information

Game | 151.7 KB

Add Game to Favorites

Current Score

3.49 / 5.00

544 votes | 21,979 views

Click an icon to vote on this!

You are not logged in.

If you log in to vote, you could win $100!

Related Submissions

Submissions by ActionScripts:

Users who liked this also enjoyed:

Everyone Suitable For All Audiences
Platform Game Tutorial
Play this Game!
Pop-Up | Add to Favorites

Author Comments

Prospects-Web is open.
This tutorial is pretty lengthy. I decided to make it very in depth so that you can actually make a game out of this. Don't blam this cause it's a tutorial

37 reviews | Log in to write a review | Share this!

The people have spoken

Average Score: 6.9 / 10

Score: 10
The-Real-Syko

"Great for noobs! :D"

date: June 7, 2008

As somebody with no experience of ActionScript at all, this worked wonders for me. All the script worked, I now have a guy running around and jumping etc etc, and I think I can figure out how to include more animations, change the key configurations, etc from the ActionScript you gave me.
Although your forum link doesn't work. And I have a bug: when he jumps right on to a particular platform, he falls straight through it O-o
Good tut though!

Rate this review:
Helpful!
Useless.
Flag as abusive.
No users have weighed in on this review.

Score: 7
F1Krazy

"This doesn't work properly"

date: March 29, 2008

onClipEvent(enterFrame){
if(falling == true){
velocity += gravity
_y += velocity
}
}

The above Action|Script, featured in the tutorial, doesn't work properly. I've tried everything and nothing's working. I'm getting pissed off now. Does anybody know what I'm doing wrong, and what the correct ActionScript is? If so, PM me.

Rate this review:
Helpful!
Useless.
Flag as abusive.
People find this review helpful!

Score: 9
egmcmac

"FIX"

date: February 23, 2008

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 :)

Rate this review:
Helpful!
Useless.
Flag as abusive.
People find this review helpful!

Score: 6
NewgroundsDummie

"not the rite thing"

date: February 20, 2008

all mine does is play the animation of him walking witout even moving him wit the arrow keys. and i get 2 errors wen i put the code in for the ground

Rate this review:
Helpful!
Useless.
Flag as abusive.
People think this is a useless review.

Score: 7
Kwing

"Perfect except for one problem..."

by: Kwing
date: January 20, 2008

My character is doing everything perfectly EXCEPT that he falls right through the platform! Could someone PM me and tell me if I'm doing something wrong with the script or instance names?

Rate this review:
Helpful!
Useless.
Flag as abusive.
People find this review helpful!