Flash AS: Rotation Tut

by AbeIsGreat

in Completed Works

< 'Flash AS: Pause Tut' by AbeIsGreat
> 'Flash AS: Movement Tut' by AbeIsGreat

Description

Jul 14th 2007
Tags:
action collaborative comedic educational experimental expressive flash horror in make rotate tings to
Views:
54
Comments:
8
Score:
2
Favorites:
9
ROTATE!

Comments

Mekaman Says:

Sweet!

war armor Says:

you can rotate stuff?!

WOOT! awesomeness man, just awesomes.

aba2 Says:

its so bla theres nothing to it no effort make pages n add bttons make it more elaborate if its short that way add things u can do with it a nd explain how the text works n such

enigon301 Says:

once again another yes!

WCP Says:

Dude, thanks! I hate actionscript

German Soldier Lock Says:

this is quite handy.

bookmarked

DrRobot Says:

what about making him walk in the direction he is facing?

if (Key.isDown(Key.UP)){
speed = 5;
}else{
speed = 0;
}

hero._x = hero._x + Math.cos(hero._rotation*(180/Math.PI))*speed;
hero._y = hero._y + Math.sin(hero._rotation*(180/Math.PI))*speed;

not sure if it works, but it should.

i may have mixed up the sin and cos.

MasterLock Says:

What makes it a tutorial? It's just a thing of code and an example.