Under rating threshold (hideshow)
Flashsoldier, I'm gonna cut you some slack because you are new here. But spamming your problem won't help.
You probably put if(enemytimer < 60) instead of if(enemytimer > 60)
Under rating threshold (hideshow)
@randomguy1273: When you create a new file, you have to select 'ActionScript 2.0.' These tutorials are made for Actionscript 2.0, so make sure you are using that, not the current version, which is 3.0. Hope that helps! :P
Under rating threshold (hideshow)
When I tried this, my ship wouldn't move and the enemies would not come out. I moved the command on my ships code that controlled the enemies so it was in the same { }'s as the Key.Right, Key.Left section. Works like a charm :D
Under rating threshold (hideshow)
Odd the enemy works when i place one on screen which means its the coding for one apearing at random which is faulty...
Under rating threshold (hideshow)
Nevermind, I found it. I had a greater than sign as a less than sign. I should have had:
if (enemyTimer > 60), but instead I had:
if (enemyTimer < 60)
Under rating threshold (hideshow)
When I load my project everything works, except that there are hundreds of enemy ships rather than just a few, I don't know what I have done wrong. Please help me.
Under rating threshold (hideshow)
Sick of getting this message "The class or interface 'EnemyShip' could not be loaded." what should i do plz message me
Under rating threshold (hideshow)
Hey guys I copied everything and all. But the enemy sprites don't appear on the right side of the screen. Help please... and thanks in advance!
Under rating threshold (hideshow)
xD on the part where you make the player create the enemy, i also tested it and went and fixed the enemy ship where it spawns half off the screen. i go to the next step and it tells me to do exactly what i did
Under rating threshold (hideshow)
EASIEST SHOOTORIAL SO FAR... who new that flash was so simple yet powerful?? i mean it's all just logic and problem solving... just my kind of work. YES FLASH!
Under rating threshold (hideshow)
@boometh: had the same problem with my missiles in shootorial 3. however when i'd completely finished that shootorial i just deleted the missile and then the layer the missile was in and it still worked.. not sure if this will help in your case but it's worth a try...
Under rating threshold (hideshow)
Never mind, I found it 2 minutes after I posted this comment. For anybody who knows where to place the code _y = Math.random()*200 + 50; you place it in this section.... -> function onLoad()
{
_x = 700;
_y = Math.random() * 200 + 50;
speed = Math.random() * 5 + 5;
}
on the enemy ships code
Under rating threshold (hideshow)
Would anybody know where to place the code.... _y = Math.random()*200 + 50; It says it at the end of the tutorial but Ia m not sure exactly where to place it.
Under rating threshold (hideshow)
i cant get any enemy ships to come no matter what i do. it shows zero errors and i looked at the picture of what my ship file should look like and it looks the same but no enemy ships will come still. could someone post what the ship file should look like at the end of this shootorial?
Under rating threshold (hideshow)
Oh silly me. When I was converting the enemy ship into symbol, I had left unticked the 'Export in frame 1'. Made it all right by choosing 'enemyShip' from library and right-clicking, and properties.
Under rating threshold (hideshow)
I think i found a mistake on page 6... if you say the Limiter has to be OVER 60 you would spawn an enemy every 61th Frame.... so it would be slightly more then 2 Seconds (or am I mistaken?)
Under rating threshold (hideshow)
A very simple error I made om my EnemyShip class was placing a } bracket in the wrong area. It gave me the error message: "ActionScript 2.0 class scripts may only define class or interface constructs."
I made a similar mistake with my Ship class and got the error: "This statement is not permitted in a class definition." This also made my ship unable to be moved by my keyboard.
So if you got either of those errors check to make sure your } brackets are in the correct spaces. Otherwise the program has been very simple to use so far, onto #5!
Under rating threshold (hideshow)
I'm trying to give the ships a vertical speed.
I put in the as file "var yspeed"
in the "function onLoad()" i typed "yspeed = random(1) - 0.5"
in the "function onEnterFrame()" i typed "_y += yspeed;"
but the "yspeed" seems to be always the same on every ship, every time i test the swf. Howewer, the "speed" is different every time.
Any help on how to fix it?
Under rating threshold (hideshow)
If it is tuck in the corner try adding "extends MovieClip" after class Enemyship
mine works except i have a white background
Under rating threshold (hideshow)
o yea, if you are having trouble with "unable to read the class or interface of "Whatever"", MAKE SURE THE FILE YOU SAVE IT AS IS THE SAME NAME AS THE CLASS!!! :3
Under rating threshold (hideshow)
I says something about being unable to read the class or interface of "Enemy Ship". I cant translate exactly cos my flash is in polish : p
Under rating threshold (hideshow)
A Most useful tutorial, It was helpful just like the other parts. Thankfully i had no troubles getting it to work the first attempt.