Monday, August 3, 2009

RPG Tutorial - Part 2

Is your main character sketched ? if yes, now its time to start programming.
So, our RPG is going to be 3rd person, and it will have an upper view.
SO now what you will do is draw you character.
If you want, look for existing RPG's like final fantasy, pokemon, and so many others they have out there.
Once you have the design, make it a movie clip and its time for actions.

onClipEvent (load) {
speed = 10;
}
onClipEvent(enterFrame) {
if(Key.isDown(Key.UP)) {
_y-= speed;
}
if(Key.isDown(Key.DOWN)) {
_y+= speed;
}
if(Key.isDown(Key.LEFT)) {
_x-= speed;
}
if(Key.isDown(Key.RIGHT)) {
_x+= speed;
}
}

basically, what it does is move the character to the direction you want. Also you can change the speed to your will.

***I WILL come back to this post VERY SOON and post previews and continue with the tutorial. just wait a few days.

0 comments:

Post a Comment