Under rating threshold (hideshow)
im having the same problem skyblader333 had, if i put none on screen none come, if i put 1 on it then 1 comes, if i put many then many come at same time
Under rating threshold (hideshow)
I've figured it out reading the past few shootorials of _root.getNextHighestDepth every simple grammar/capital counts... I dont thing GetNextHighestDepth works since Get is capped
Under rating threshold (hideshow)
works for me
i mean there are typing errors in the explanation but i couldnt find them in the code (only my own stupidity made it not work (+ where there should be - >.>)) but it works ^^
Under rating threshold (hideshow)
@BurntBiscuits: No, this shootorial, unlike the other, does have errors. If you could get it to work with just copy and pasting, then obviously you cheated. Try it again, but only use the mouse and Ctrl+C and Ctrl+V (and maybe backspace).
Under rating threshold (hideshow)
Gotcha little bugger, BurntBiscuits was right, I mispelled onLoad, I written OnLoad (the On must be without capital letter!) now my ships appear! :D chek if u mispelled ANYTHING, even if u forgot a "," I failed that one time
Under rating threshold (hideshow)
There are NO errors. not in ANy of the Shootorials. And errors you make ARE your fault. The reason something isn't working is because you have pasted something in the wrong place, deleted something by accident and a whole load of other, common mistakes. If this Shootorial was riddled with errors, then I wouldn't be able to get it working by simply pasting everything down, would I?
Under rating threshold (hideshow)
@dalcde This shootorial is poorly written and has quite a few errors in it, if your enemy ships aren't coming out, it's not your fault. I would post what you have to fix, but it would take a while to type up, and If you are actually going to make a game that works, you need to know how to troubleshoot things like this.
Under rating threshold (hideshow)
I'm having BIG trouble I've redone everything and it give em the following message... The class or interface 'EnemyShip' could not be loaded.
Under rating threshold (hideshow)
@ CrownRock:
Make sure that you are placing the script that adds to those variables under a "function onEnterFrame" section and not under a "function onLoad".
@ zuhayrahmed:
I had the same issue with my Ship class. Check one more time that your spelling is right, as well as capitalisation. If it's still not working, change the name of the .as file to match the name of the class.
Hopefully this helps.
Under rating threshold (hideshow)
Dammit! We should be able to d/l these and work on them when we are offline. My ISP is screwed today and I was looking forward to working on this in my downtime. Ran to the local cafe just to see if I could get to the SWF files through the HTML code, but they are getting pulled in through some Google function and I don't have time to screw around with Firefox....Grrrr!
Under rating threshold (hideshow)
The shootLimiter and enemyTimer variables don't work for me. It only adds to the variable once, when the app starts. I managed to figure out my own way to fix the shots, but I'm clueless with the enemies.
Under rating threshold (hideshow)
i every time i do a test i get an error saying "The class or interface 'EnemyShip' could not be loaded. any idea how to solve this problem?
Under rating threshold (hideshow)
Last night, I left flash running and went to bed. When I got up and tried to test the movie, it gave me 4 errors: The class or interface 'EnemyShip' could not be loaded. , The class or interface 'Background' could not be loaded. , The class or interface 'Ship' could not be loaded. , The class or interface 'Missile' could not be loaded. Anybody know what happened? I did not change anything as far as I know.
Under rating threshold (hideshow)
i just figured it out!! all of my ships can now appear more than oncE!!! The secret: make sure the class of your enemy is EnemyShip if you copy and pasted the code for attaching enemies to your stage. The reason: if you look in the function: root attach, you will find in quotation marks, EnemyShip, that is the thing you will attach to the stage. if your enemy's class name is different from those in quotation marks, then it will not work. Note: you can also just change the text in quotations to the class of your enemy. I'm happy now!!
DOUBLE PASTE!! it is that important.
Under rating threshold (hideshow)
i just figured it out!! all of my ships can now appear more than oncE!!!
The secret: make sure the class of your enemy is EnemyShip if you copy and pasted the code for attaching enemies to your stage.
The reason:
if you look in the function: root attach, you will find in quotation marks, EnemyShip, that is the thing you will attach to the stage. if your enemy's class name is different from those in quotation marks, then it will not work.
Note: you can also just change the text in quotations to the class of your enemy. I'm happy now!!
Under rating threshold (hideshow)
spelling mistake, page two, step 3, last sentence... 'need ay enemy ships' ..... side note, loving these tutorials. im going to make an uber game based off something i played as a kid on dos. kudos.
Under rating threshold (hideshow)
this is weird... I tried first, I deleted the enemyship. and then nothing came out. The second time I tried leaving the enemy ship there and not deleting it. But only 1 ship came and done, no more. The third time I tried, I pasted a few ships outside the stage and I saw that a few ships come out at once, and done no more.
Under rating threshold (hideshow)
help please i cant get the ship to apear and move cause it apears after ten seconds on the left side of the screen and it dont move it just stays ther
Under rating threshold (hideshow)
brifri328, www.osflash.org is one alternative to the Adobe. It is a little complicated to get set up, but "http://osflash.org/getting_started_with_fames" is a starting point.
Under rating threshold (hideshow)
sorry for triple posting :P
but if anyone tries my method can they say if they can get their ship to spawn from the same _y spot everytime and how they did it, thx
Under rating threshold (hideshow)
eterps way is good and works, but if your prefer to actually understand what you've got in your actionscript (his method is too advanced for me :P) you could also try using a timer and that after an x period of time switch your yspeed (have an x and y speed) to negative, thus making it go up instead of down and viceversa
Under rating threshold (hideshow)
In regards to the eterps tweak, it seems to eliminate the vertical limiter function that i placed in(as per the tutorial). does anyone know anything about this?
Under rating threshold (hideshow)
BUMPING, Thanks To ETERPS He Did This
"Actionscript is great! So much easier than other languages. I've been trying to get the enemies to bob up and down for a while, and FINALLY figured it out. In the EnemyShip class, under var speed; add the line: var bobCounter Then in function onLoad(), add the line bobCounter = 0; Finally, go to function onEnterFrame() and add two lines of code. The first is: _y += Math.cos(bobCounter)*10 and the next line is: bobCounter += (Math.PI/8);"
Under rating threshold (hideshow)
Theyre alrite tuts but I preffer AS2...
Also, Adobe Flash sucks badly! I reccomend getting Macromedia Flash 8... Ever since adobe bought flash they completely wrecked it, so get Macromedia's last version... I believe its Mac Flash 8
Under rating threshold (hideshow)
well if you want to buy the program for a lot of money(like 100$ or something), ilikecheese, then do it.
I would if i had more money cause Adobe makes great stuff for anyone who wants to create anything (on a computer...).
Under rating threshold (hideshow)
Actionscript is great! So much easier than other languages. I've been trying to get the enemies to bob up and down for a while, and FINALLY figured it out.
In the EnemyShip class, under var speed; add the line: var bobCounter Then in function onLoad(), add the line bobCounter = 0; Finally, go to function onEnterFrame() and add two lines of code. The first is: _y += Math.cos(bobCounter)*10 and the next line is: bobCounter += (Math.PI/8);