Under rating threshold (hideshow)
For those asking wanting to use other than direction keys, look for "Javascript Char Codes". Google it, perhaps. Enter one of those codes in stead of (Key.DIRECTION). Example: If(Key.IsDown(65)) to check if 'a' is pressed, etc.
Under rating threshold (hideshow)
For those asking for ASDW keycodes, look somewhere for "Javascript Char Codes". They are the codes used. Google it, perhaps.
Under rating threshold (hideshow)
If you would want to use ASDW movement i would assume you would change the code in your ship.as file's if statement, when its stating which key is being pushed. Maybe Try if(Key.IsDown(Key.W)etc...)
Under rating threshold (hideshow)
Thanks to my limited art skills, I now have the flying narwhal vs an army of pregnant dolphins. I should have used their graphics -_-
Under rating threshold (hideshow)
Hey everyone! If anyone here wants to convert AS2 code to AS3 I set up a quick guide on how to do it. This uses old code that you wont want in newer projects but the site I set up will explain how to use it! http://codingflashfast.webs.com/
This should help everyone who needs this in AS3!
Under rating threshold (hideshow)
I'm trying to implement my own idea for a game, but I came across a problem. How can I make the _y of one movie clip be dependent upon the _y of another? Say i wanted two enemy ships at a time at 100 pixels apart every time, how could I do that?
Under rating threshold (hideshow)
You may think not, but this tutorial is VERY good. It teachs how to move a MovieClip, how to spawn bullets and stuff, how to create variables and play with them, basic drawing, and so much. 5/5
Under rating threshold (hideshow)
I couldn't find any error in my code, however, when I tested it, a lot of enemy ships appear at the same time. Could someone help me?
Under rating threshold (hideshow)
@Oreon Necris I have the same predicament as you had, Any info you can remember will be helpful.
For anyone who didn't see, My ship spawns in the top left corner and I get an error saying "Symbol=EnemyShip, layer=Layer 1, frame=1, Line 1 The class or interface 'EnemyShip' could not be loaded." im running CS5.5 on a windows vista.
The enemy also does not move. I have codes exactly how it says in here.
Under rating threshold (hideshow)
-_-; i dont know why but my enemy ship always spawns top left. and an error "Symbol=EnemyShip, layer=Layer 1, frame=1, Line 1 The class or interface 'EnemyShip' could not be loaded."
im running CS5.5 on a windows vista.
Under rating threshold (hideshow)
If you had the same problem as me, copying the code exactly from the screenshot only to have it result with no enemy ships and no control over your own ship, add an extra '{' bracket to the bottom of the code.
Under rating threshold (hideshow)
Does anyone know why I keep getting an error message whewn I try to publish it? It says The class or interface 'EnemyShip' could not be loaded..
Under rating threshold (hideshow)
Forget my other comment. Just go to library, click on "EnemyShip" (should already be there) and delete it. Hope it helps
Under rating threshold (hideshow)
I had this problem when I went to convert the first ship to symbol, but it fixed itself. Now when I try and convert EnemyShip to movie clip it says "The name 'EnemyShip' is already taken. Please choose a different name." Help?
Under rating threshold (hideshow)
If you don't name the enemy ships EnemyShip, where it puts _root.attachMovie("EnemyShip",etc change EnemyShip by the name of your current enemy ships.
For example if the enemy ship is called AlienShip, you must put _root.attachMovie("AlienShip", etc). Maybe thats the problem that makes the enemies not appearing.
Under rating threshold (hideshow)
this is not a great game and i know why because the graphics and the pictures quality are verrry looooooooooooowwwwwwwwwwwwww
Under rating threshold (hideshow)
this is a good time to "what happens if i do this?" hence not following all the exact codes, in order to further understand what we are really doing, really this is a good tutorial... really good! 5/5
Under rating threshold (hideshow)
*If the Enemy ship disappears after 2 seconds* I had a typo in getNextHighestDepth. So it didn't read that it should assign a new number to each one and was generating the same one over and over again (i.e. deleting it every 60 frames and regenerating it on the left side of the screen).
Under rating threshold (hideshow)
At first I didn't know where to paste the _y = Math.random()*200 + 50; bit so I put it in the Ship.as... big mistake every time an enemy ship spawned it would teleport my ship to random parts of the screen.
Thankfully I found it now :P
Under rating threshold (hideshow)
NOTE: DOn't forget to save your projects FREQUENTLY-- After EVERY change. Otherwise you'll never get the stuff working when you test! LOL O.o
Under rating threshold (hideshow)
If the enemyship dissapears after 2 seconds, go to the ship script and change the "if(enemyTimer > 60)" to "if(enemyTimer > 120)"
Under rating threshold (hideshow)
For any developers out there I praise you, because you have to deal with this crap. I've done this only for a couple hours and I want to beat the hell out of whoever came up with the case sensitive idea. 1 hour just to change my "e" to "E". But it's worth it :)
Under rating threshold (hideshow)
yeah... this sucks you have to like download and its not even good when you HAVE DOWLOADED so what do you think? and there comes VIRUSES when you download this game. So this is my favourite game ... ):
Under rating threshold (hideshow)
add comments to your code so you can remember what you learned
like this:
// comment
or
/*
comments
comets
comments
*/