Be a Supporter!

Credits & Info

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

Related Stuff

If you liked this, check these out!


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


5632556325

Rated 5 / 5 stars October 19, 2009

Yay!

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.


Y2k4everY2k4ever

Rated 5 / 5 stars October 18, 2009

question

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.


atomicenergyatomicenergy

Rated 5 / 5 stars October 20, 2009

Nice!

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


People find this review helpful!
Kwing responds:

You're really amazing! I like your review!


teranamosteranamos

Rated 5 / 5 stars April 14, 2012

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
baseScale=_xscale;

2. Hit CTRL + F and find every instance of _xscale. Every time you have a line of code that says:
_xscale = 100;
or
_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.


KrymtelKrymtel

Rated 5 / 5 stars October 18, 2009

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.