Under rating threshold (hideshow)
my explosion keeps appearing in the top left hand corner and disappears, it wont appear where the enemy ship was at! please help!
Under rating threshold (hideshow)
So I feel like I have to be missing something incredibly monumental, because my missiles seem to pass through every other enemy. I'm not sure what I've done wrong but the name of my incidences is correct I believe. Can anyone help me? This has gotten rather frustrating...
Under rating threshold (hideshow)
it would appear that (judging by others comments) that anyone using macromedia flash 8 cannot load up the source files once downloaded. could anyone post it so that those with macromedia can carry on with this tutorial. it's a bit annoying that after getting this far i'm being held back by software... thanks
Under rating threshold (hideshow)
aah.. source files downloaded but now i'm unable to open SH_05.fla it says "Unexpected file format." i'm using macromedia flash 8 if that has anything to do with it. PLZ HELP!
Under rating threshold (hideshow)
@krinsmnite: it's probably to do with the frame rate of the game being different to the frame rate of your explosion. but that's just a guess
Under rating threshold (hideshow)
im using cs5 and i think u have to declare functions before you use them in the main loop but i cant find how to do that...anyone know the syntax?
Under rating threshold (hideshow)
i put in a instance name in for ship.then publish the ship will not move and the enemys dont show up. anyone have this problem help
Under rating threshold (hideshow)
if you're using flash cs4, you have to define the function before it's use in the onEnterFrame() function. as such put it by your variables, easy fix just letting you all know
Under rating threshold (hideshow)
My issue was fixed! Turns out I had a comma after the second "Missile" before the + in the Ship's attach Missile mc script.
Sorry for posting 3 times here :c
Under rating threshold (hideshow)
I had it set to 30 fps. I ended up exporting it as a flash movie instead of a gif. For some reason I can not get the gif to run correctly, even with extra frames added. But, after some tweaking, I got it to work with a flash movie.
Under rating threshold (hideshow)
I am having another problem however. My EnemyShips only explode if I hit, for example, the third EnemyShip with my third Missile. If I miss an EnemyShip, and then hit the THIRD EnemyShip with my FOURTH missile, there is no more collision detection. I've triple checked my for...in code and the enemies array code and can't find a fault. Any ideas?
Under rating threshold (hideshow)
@krinsmnite, are you exporting your explosion from another Flash file? The default frame rate in Flash is 12 fps, and I assume that's what your explosion is being exported at. The game is ran at 30 fps.
You can change your frame rate in your explosion file to 30 and double-frame it or something, that's what I did lol.
Under rating threshold (hideshow)
I hate to spam, but I'm updating my progress. I've tried making the explosion in gif, swf, everything. It plays fine normally, but, after I import it into this game, it plays far too fast. I can't find any info on google or in the help about this.
Under rating threshold (hideshow)
make sure your enemy ship has the right scrip under Function Explode() and that Function Explode is in the right place
Under rating threshold (hideshow)
@ bufferOverflow i may be wrong but i think the number is removed when the instance of that ship is removed because its a local variable tied into that ship so enemyX should be tied to arrayX
Under rating threshold (hideshow)
Alright I need help if anyone can assist... I cannot get my function explode() to attach to this.removeMovieClip If I replace "{explode();}" with "{this.removeMovieClip}" it functions properly and removes enemy ship on impact of ship but with explode they just pass right through each other and no impact collision... So.. what am I doing wrong?
Under rating threshold (hideshow)
@ marx4400 I've read that it has something to do with the name of your instance. I just had that problem. If you name the instance the same name as the class nothing works. Problem I'm having now is I can't get my hit detection to work. Enemies are flying right through my ship :(
Under rating threshold (hideshow)
There is a problem with this tutorial scenario. If you create an array that holds the enemies, and add one whenever it appears on the stage, shouldn't you also remove them from the array when they are destroyed? The way it's described, it's a performance leak - Every missile will loop through the list of many enemy ships, even if they have left the screen or have been destroyed. Did I miss something?
Under rating threshold (hideshow)
I wonder if we can create some explosion animation in after effects and then use it in flash. has someone already try that ?? It would be actually great to do that, you can use really cool animations like laser beam, shield or something that kind of stuff using after effects :)
Under rating threshold (hideshow)
Ok I have another problem. I just finished page 14 and I went to test it and an error popped up:
WARNING: The Export Frame for Classes specified in the Publish or Export settings, frame 5, does not exist. No bytecode for ActionScript 2.0 classes or interfaces was exported.
If it means anything I'm currently using Flash CS5, not CS3.
Under rating threshold (hideshow)
Oh, nvm. I figured it out. LOL after hours of trying to figure it out, as soon as I post for help, I figure it out! XD
Under rating threshold (hideshow)
When i go to the link and download the files, the explosion clip doesn't appear, just the explosion.as. What's wrong =(
Under rating threshold (hideshow)
Okay for the last three days I have tried to figure out what is wrong with my missiles... I cannot get them to make enemy ship explode they just go through them... =/ driving me crazy
Under rating threshold (hideshow)
I GET THESE ERRORS i saved every thing resolved other errors but these
C:\Users\Fawaz.FAWAZ-HUSSAIN-P\adobe cc5\Shootorial\Ships.as, Line 48 There is no property with the name 'enemy'.
C:\Users\Fawaz.FAWAZ-HUSSAIN-P\adobe cc5\Shootorial\Ships.as, Line 48 There is no property with the name 'enemy'.
Under rating threshold (hideshow)
in my game, this error came
for(var i in _root.ship.enemies) {
This statement is not permitted in a class definition.
Under rating threshold (hideshow)
I'm having a slight problem. Only some of the enemy ships explode :S. I can shoot some of them but the other ones, the missile goes right through them. They only explode when i run into them.
Under rating threshold (hideshow)
i have a problem please help! when i shoot and hit ,or colision, the explosion works, but it loops (plays continous). how should i fix this??
Under rating threshold (hideshow)
for the source files: right click and open in new window. then, when it appears , quickly press ctrl+a. it worked for me! (it was opening and closing before)
Under rating threshold (hideshow)
never could get the hit detection on missiles to work. On the plus side, the resulting failure did give me an awesome game idea
Under rating threshold (hideshow)
k ive got a couple of problems... firstly my missiles do not make the enemies explode but they do disappear and my enemies make 2 missiles... 1 my colour anothe their color.... their colour does as it should but my colour stands their and does nothing.