FUN: Making MC’s do some fun stuff (Part 1)


This is some fun things that AS2 beginners could try to experiment with.

PROJECT NUMBER 1: Rotating forever, with script

Really simple thing, let’s say, you want, for any reason make a rotating MC, without using shape tweens. And no, without making it FBF either. This is a simple code, that is easy to modify. You put it on a MC.

onClipEvent(load){ //when the MC loads
speed=5; //used to set the rotation speed
}

onClipEvent(enterFrame){ //when you enter the frame, code will run over and over again.
this._rotation+=speed; //Will make the MC rotate.
}

PROJECT NUMBER 2: Increasing in size, forever, using script

Now, we’ll do almost the same thing, but let’s make it increase in size!

onClipEvent(load){ //when the MC loads
speed=5; //used to set the resizing speed
}

onClipEvent(enterFrame){ //when you enter the frame, code will run over and over again.
this._xscale+=speed; //Will make the MC x axis increase in size.
this._yscale+=speed; //Will make the MC y axis increase in size.
}

THE END!

At least the end of part one! Look out for next part of this fun tutorial.

Advertisements
Explore posts in the same categories: ActionScript 2.0, Basic

Tags: , , , ,

You can comment below, or link to this permanent URL from your own site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: