PDA

View Full Version : [AS2] help on a rpg game


mordocai
08-06-2004, 09:42 PM
Basically i have three movie clips, "char", "enimie", and "wep".
Char is my hero,
enimie is obviously my anemy
and wep id my hero's dagger.
The wep movie clip is 15 frames long framr 1 is blank, frame's 2-14 are the dagger swipinh and frame 15 is bland with an actionscript in it tellong to go to and stop in frame1.
now what i want is when space bar is pressed my character should attack using the wep movie for wepon. if any1 could help please do,
If you need more detail tell me and ill post it.
~Mordocai

farafiro
08-08-2004, 02:43 PM
I shold see it but try this
//in the root
var o:Object = new Object()
o.onKeyDown = function(){
if(Key.isDown(Key.SPACE)){
//your attack script goes here
}
}
Key.addListener(o)

mordocai
08-08-2004, 04:43 PM
ill try it
tkx
~Mordocai

mordocai
09-11-2004, 04:54 PM
Hey, has any1 here ever made an rpg game? im askin cuz i need some help...