Big thanks to generalwinter, our latest supporter!

We're 12 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):
_parent._y=Stage.height/2 -_y;



A tutorial that works! Thank you for sharing this, well explained, and I can read the text. 9\10... screw it.... 10\10 4\5

Kwing responds:

:D Thanks! It's so annoying that people complain about the text hard to read... I can read it just fine and so could the first several people that reviewed it.


will this work with flash mx 2004 , or in lay mans terms flash 7 ?

Kwing responds:

It'll work with any version of Flash, provided it supports AS2 and you're operating on AS2.


This is really amazing! I like your tutorial! :)

People find this review helpful!
Kwing responds:

You're really amazing! I like your review!

Great tutorial, it is a bit advanced but explains everything quite well.
The only problem is that when i press any buttons, my character gets stretched out and flattened.
Help Please?

Kwing responds:

That's because you've resized the player with the free transform tool. My suggestion is this:

1. Add this in an onClipEvent(load){ tag

2. Hit CTRL + F and find every instance of _xscale. Every time you have a line of code that says:
_xscale = 100;
_xscale = -100;
replace "100" with "baseScale".

That should make the size changes carry over even if you change the player's size with free transform. Otherwise just resize the player inside of their Movie Clip rather than outside.

Very Good!

Teaches me ALOT!

Kwing responds:

Yeah, I might actually publish a dictionary for AS2 words... It really annoys me when a tutorial tells you what to write and doesn't give you A) the definition of a word, B) an example of a word used in a much simpler sentence, and C) what the correct syntax around it is.

Click on an icon to vote on this!

Credits & Info

3.75 / 5.00

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