Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

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


Basic Platform Game Tut


Date Submitted

11/05/2006 | 12:38PM EST

File Information

Game | 527.1 KB

Add Game to Favorites

Current Score

2.86 / 5.00

399 votes | 3,699 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 bob marley (bobselight):

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

Author Comments

This is a tutorial for the ones who begins with Flash. It explains step by step how to make a Platform Game.

The final product will be the base of a platform game, this game will be pretty easy to improve.

--- If you liked it, please recommed it for the tutorial collection! :) ---

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

The people have spoken

Average Score: 8.3 / 10

Score: 10
daxxydaxxy

"grea ttu really really helped me but.."

date: August 19, 2008

i had a little problem and i cant work it out my charater wont jump could u help me please

August 19, 2008

Author's Response:

Sorry dude, but it seems a couple of persons are having that problem and I really don't know why =\ Chek out other comments for potential solutions.

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

Score: 10
PenguinBomb

"hellzyeah"

date: August 17, 2008

liquid tension experiment is awesome

August 19, 2008

Author's Response:

Yeaaah! =D

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

Score: 9
Hi5er

"eh... Not what I am looking for but..."

by: Hi5er
date: August 11, 2008

... good for the people who need it.

See I am trying to make one of those keepy up games and I was wondering if it was possible to apply the same gravity and jump options that you would use in a platformer game, only change the hit test to make it so it "jumps" when in contact with the mouse...

So far, my attempts have been a bit of a failure... Do u have any ideas?

On another note:

This is a well layed out and easy to understand tut that should help any level of flash coder create their basic platformer game, good job.

August 11, 2008

Author's Response:

Hm yeah I think it would be possible to do this if you change the scripts a bit, for exemple, instead of writing that when the UP touch is down: circle jumps, write that when circle hit Y: circle jumps (if Y is an object that follow your cursor). Maybe it could be written that way (put that script on circle):

onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 8;
jumpheight = 10;
maxfall = -54;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (this.hitTest(_root.y)) && fall == false && jump == undefined) {
fall = true;
jump = jumpheight;
}
if (jump<>undefined) {
if (jump>maxfall) {
jump--;
}
_y -= jump;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
}
}

Good luck with your game and thanks for the comment =)

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

Score: 10
Mad-Mon

"Great Tut I think I know what might be happening.."

date: July 30, 2008

... everyone should check the code for artifacts. I noticed, for example, when I look at the code for the floors and ceiling on your tut, it looks fine, but when I copy and paste the code into Flash, at the end of the code the lettles " iy " comes up at the bottom. Also check your version of flash to make sure the Action Script is compatible with the version of flash you are using.

but anyways, great tut.

July 31, 2008

Author's Response:

Thanks for finding the problem! (I think you're right hehe)

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

Score: 10
HATANBLOOD

"NICE! A IMPORTANT BASIC INFO FOR GAMES"

date: July 21, 2008

GREAT TUTORIAL! It helped me use a differnt way thats much cleaner to have platforms.Iam having a problem tho with multi plats i cant make more than 1 or delete the 1 i made to creat another so is ther a way to fix this???
thanks hope to see more info about games
|'\ - /'|
,^.,.^, ,
,".~.", / |
| \ / | / |
/| | '' | |\/ |
( | | _| | ) /
''' ''' must share with beginner friends!

July 23, 2008

Author's Response:

=D Thanks dude! For your problem, I think it's because you're using copy/paste :O So just don't use it, and draw a new platform everytime you want another one :)

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