06-20-2006, 03:46 AM
(This post was last modified: 06-20-2006, 04:57 AM by Ghettobird.)
heya ^_^ had nothing to do so i'll post a game tutorial
how to walk?
its very easy:
draw a character u want to have (for beginners start with a dot or something)
now "convert it to a movieclip"
this is: selecting the whole graphic u just drawn and rightClick->convert to symbol
now select movieclip
after that again right click and now press "actions"
now you'll see a screen all white
in the screen put: (for birdeye graphics only! else remove all the _rotation things)
as u can see the
is for which key u want for the following option:
this means y (vertical) - (up) speed(is 8)
so what it does when press the up arrow key it walks vertically up with speed 8
this is which way the char turns to with the key up it has to face up so that will be 0
downwards is 180
thats half of a round (full round is 360)
well i hope this helps
have fun!
(Credits to Rochy And Flash 8)
how to walk?
its very easy:
draw a character u want to have (for beginners start with a dot or something)
now "convert it to a movieclip"
this is: selecting the whole graphic u just drawn and rightClick->convert to symbol
now select movieclip
after that again right click and now press "actions"
now you'll see a screen all white
in the screen put: (for birdeye graphics only! else remove all the _rotation things)
Code:
onClipEvent(load){
speed = 8;
}
onClipEvent(enterFrame){
if (Key.isDown(Key.UP)){
this._y -= speed;
_rotation = 0;
}
if (Key.isDown(Key.DOWN)){
this._y += speed;
_rotation = 180;
}
if (Key.isDown(Key.LEFT)){
this._x -= speed;
_rotation = 270;
}
if (Key.isDown(Key.RIGHT)){
this._x += speed;
_rotation = 90;
}
}
as u can see the
Code:
if (Key.isDown(Key.UP)){
is for which key u want for the following option:
Code:
this._y += speed;
this means y (vertical) - (up) speed(is 8)
so what it does when press the up arrow key it walks vertically up with speed 8
Code:
_rotation = 0;
this is which way the char turns to with the key up it has to face up so that will be 0
downwards is 180
thats half of a round (full round is 360)
well i hope this helps
have fun!
(Credits to Rochy And Flash 8)