00:00
00:00

Big up to CometRacer007, our latest supporter!

We're 13 people from our target today. Why don't you be one of them?

You can support NG too and get tons of perks for just $2.99.

Create a Free Account and then..

Become a Supporter!

Platform Tutorial AS2

Share Collapse

Author Comments

Note: This tutorial is written for AS2!

First off, I'd like to inform reviewers that Newgrounds categorizes tutorials and games as the same; if you were expecting this to be a game, you're wrong!

This is a rather detailed tutorial on my new platform engine. It involves acceleration, deceleration, sliding, jumping, gravity, walls, and two different attack types! There are a few glitches, but provided you don't change the variables too much, you should be fine. I explain every ActionScript word once, and fully explain all of the phrases and lines. RECOMMEND FOR TUTORIAL COLLECTION PLEASE!

- EDIT: Daily 3rd?! Woohoo!!!
- EDIT: I get a common question asking how to add enemies. My old and shitty Real-Time Battles tutorial covers it, so go check it out!
- EDIT: I've also gotten requests on how to make a V-Cam. This is also fairly easy; just paste this inside the first frame of a Movie Clip (make the Movie Clip the size of the screen):
onEnterFrame=function(){
_parent._x=Stage.width/2-
_x;
_parent._y=Stage.height/2 -_y;
}
onUnload=function(){
_parent._x=0;
_parent._y=0;
}

Reviews


this

is THE BEST platform tutorial I have ever found. It covers everything you need in a platform game, well exept for enemies coints and V-cam. But that you can find elsewere.(I hope elsewere is a word :D) anyway:
Practicabillity:10/10
The look :D : 6/10
Overall : 9/10
Score:25/30
Score:8/10
BUT VOTED 5 ;D


People find this review helpful!
Kwing responds:

Thanks! Traditional platform games are kind of boring for me, and I want to make something that really ROARS! So if I ever make a real game out of this it'll probably be an action RPG. Actually, the Umbrella Shop in Arr Pea Gee uses the same engine as this tutorial.


good, but...

Overall nice tutorial, but you should really reconsider making the background a lighter shade of green. I could barely read the text.
But, overall:
9/10
4.5/5


People find this review helpful!
Kwing responds:

Alright, thanks! It was easy for me, maybe some people have low contrast monitors.


no.

THIS WONT WORK!!!!! unless in the script when you say " put it to the right" I'm doing something wrong( I dont get it that much, i just put it beside the last thing of the last line is that wrong? )


People find this review helpful!
Kwing responds:

I'm not sure I follow you. Are you even putting it on a Movie Clip or the frame? Which script? There should probably be an error if you're putting it on the wrong part. Based on what Flash tells you about those you should be able to fix it.


Hmmmm...

The tutorial is perfect. One thing for me is, I would like it so that when it hits a movieclip, if it is attacking when it hits it the movieclip gets deleted, and if the player isn't attacking then the player takes damage. With a health bar already in place, how would you achieve this?

Thanks :)


People find this review helpful!
Kwing responds:

Well I already explained the unloadMovie script. I have a tutorial called Real-Time Battles that explains health and that kind of stuff. As for only if the player isn't attacking, you could just use:
if(attacking==false){
or something of the sort.


Great! but.....

I can't get my wall so that when I hit it, it will vanish(unLoad movieclip). Everything else works though! :D


Kwing responds:

Your wall isn't supposed to vanish when you hit it. That makes no sense.

Click on an icon to vote on this!

Credits & Info

Views
23,600
Votes
628
Score
3.75 / 5.00

Uploaded
Oct 18, 2009
2:40 AM EDT
Genre
Tutorial
  • Daily 3rd Place October 19, 2009