How do you bring in a new movie/level when you beat the first?
ok, i made a game where you are a ship defending earth from some asteroids. Your ship has a shield generator that allows the ship to hit the astroids and save earth from being pelted by them.
In my move 25, there is 4 asteroids. After all are defeated how can i bring in my movie 26? I need to be able to bring the move in once all asteroids are destroyed(i used a script that makes the asteroids hide after colliding with the ship). I created this movie through the first one, so its on my elements list, i just need to know how to bring it in once all asteroids are destroyed, so this would make it look like your on level 2.
hmmm ok, but one last question, how can i determine when element level one will hide, for i want it to hide once all asteroids are destroyed, do u have any idea how i could do that lol
maybe im not explaining this enough, ok my "level one" is my main move (movie 25). For level two, would i like create an animation element or, make a slide show, that would have my level two? if so how could i bring it in?
don't really know how you build this game. but normally you should have a variable with the number of astroids:
astroids=20;
Every time a astroid is hit you increase the variable by 1.
astroids--;
then you have a script which runs in the background:
if (astroids==0) {
level++;
message="Congratulation! You defend our planet!";
if (level==1) {
element("level1").show();
} else if (level==2) {
element("level1").hide();
element("level2").show();
} else if (level==3) {
element("level2").hide();
element("level3").show();
}
}
Originally posted by sonic04 maybe im not explaining this enough, ok my "level one" is my main move (movie 25). For level two, would i like create an animation element or, make a slide show, that would have my level two? if so how could i bring it in?
don't make the first level the main movie!
try to build it like I described above..
a child movie for each level.
o ok i guess i was thinking something different that obviously cant work lol.
Sorry to take up so much of your time, but i need to know one more thing.
You said the varriable was asteroid, well right now i have 4 different paint elements that make up my 4 different asteroids. O jeeze this is confusing. Should i just make one asteroid paint element then clone it for my nexd levels? im not sure how to do this, but would i just make a script saying:
asteroid=element("paint 94")
then do your script:
astroids=20;
if (astroids==0) {
level++;
message="Congratulation! You defend our planet!";
if (level==1) {
element("level1").show();
} else if (level==2) {
element("level1").hide();
element("level2").show();
} else if (level==3) {
element("level2").hide();
element("level3").show();
}
}
But by putting astroids=20, does that really clone it, or how would i clone it?
o jeeze, lol i hope this doesnt bring up a different problem, i opened your file, but it says its some unknown format when i go to the 3dfa screen. Ive never used someone elses work before for im kinda new to this software, so is there anything i have to do to the file before i can use it?
3dfa v 4 realese 5 is the one i use, im trying to find a way to view the file, it says unknown location because the location of the file is from your computer so ill try changing it to mine i guess
first of all when i pressed play nothing was on the screen, but in your
//create empty astroids movies and clone astroid movie
comment in the script, what did u mean by that?