You need a Grounds Gold Account to post on the NG BBS!If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!
At 4/9/08 08:09 AM, boburmum1 wrote:
sorry, i said the wrong thing. what would be the actionscript for menu1. cause the text doeswn't turn to blue when i type it in. what should i do. and i have been reading the tutorials alot. i read at least 7 tutorials before i started the game.
Did you start flash?
=================
A RPG is one of the hardest-to-make game types. Start with simple things.
attachMovie() loads Movieclips from the library onto the stage.
Example:
Create the MC "bullet", delete it from the stage, don't delete it from the library. In the MC-Settings-Window activate "Export for ActionScript" and name it "bullet".
Then, code:
_root.attachMovie("bullet",0).
It will load it onto the stage. If you did this, I will tech you the rest. Do that now.
var i = 1
onEnterFrame = function(){
if (_root["enemy"+i].hitTest(_root.deathObj )) {
trace("DIE")
}
i++
if(i>3){ //CHANGE "3" TO NUMBER OF ENEMIES!
i = 1
}
}
Just name the enemies "enemy1","enemy2" and "enemy3", if you need more, name them the same way and change the code.
Lool, you're the first one who writes Codes on the stage with the text tool xD.
Open the AS Panel by pressing F9, and do what the poster above said- set the variables.