Sweet!
you can rotate stuff?! WOOT! awesomeness man, just awesomes.
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
once again another yes!
Dude, thanks! I hate actionscript
this is quite handy. bookmarked
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.
What makes it a tutorial? It's just a thing of code and an example.
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.