Under rating threshold (hideshow)
@theman123321
Check to see if the way you have spelt "shootlimiter" is the same everywhere, caps on the letters matter.
Under rating threshold (hideshow)
i need help! i copies the text on the example word by word and its still giving me the "There is no property with the name 'shootlimiter'." for everyline witht the word "shootlimiter"
I think i have to create a class with the function "shootlimiter"
any ideas??
Under rating threshold (hideshow)
I've done the code over and over, and my EnemyShip code says "The class or interface "EnemyShip" could not be loaded. I don't know what's up with that, but Enemies are a huge part of shooters >.<
Under rating threshold (hideshow)
This has been one of the best thought out and well put together tutorials I have ever seen.
Thanks for all your help so far!
Under rating threshold (hideshow)
I thought I followed all of the instructions exactly, but when the enemy ship gets called to the stage, it appears in the upper left hand corner and doesn't move. Does anyone know what I did wrong?
Under rating threshold (hideshow)
i love this so damn much thanks for the tutorial! helping us noob flash learners D:
i made my own version of this game :D yayyy
Under rating threshold (hideshow)
class EnemyShip extends MovieClip
{
var speed;
function onLoad()
{
_x = 850;
_y = Math.random()*200+(Math.random()*60);
speed = Math.random()*5 + 5;
}
function onEnterFrame()
{
_x -= speed;
if(_x < -100)
{
this.removeMovieClip();
}
}
}
This is a working code for EnemyShip. You must remember to save the file EnemyShip (the name of the movie clip)
Under rating threshold (hideshow)
WOW these tutorials are awesome, with not only its great presentation, but the quality of the actual tutorials are outstanding and very educational. 10.5/10.
Under rating threshold (hideshow)
Ummm. So I understood everything and finished the tutorial but:
The number of enemy ships that spawn doubles every time they spawn. 1 enemy spawns, then 2, then 4, then 8, and so on. Any idea where I could have screwed up to cause this?
Under rating threshold (hideshow)
wait a sec here...if _y = Math.random()*200 + 50; rids of clipping what about the lower half of the screen? they will clip 50 pixels more than before? HELP!
Under rating threshold (hideshow)
Voniche,
Firstly, _y = Math.random()*200+50; is equal to between 50 and 250.
The reason these both work is that the *200 is multiplying 200 by 0-1 and then adding 50 to the total making it a minimum of 50 and a maximum of 250, and for the other one *5 is multiplying 5 by 0-1 and then adding 5 to the sum making a minimum of 5 and a max of 10.
If you follow the directions of the tutorial your * (in this case 5 and 200) will always be multiplyed by 0 or 1, then the + (5 and 50) is added to the total of the multiplication to set a limit for the variables.
Under rating threshold (hideshow)
You have to set it up as it is in the tutorial, make sure your script for the random is exact, as getting it wrong will result in them randomly appearing in the wrong places.
Under rating threshold (hideshow)
please help! I couldn't see my ships but when i maximise the game i can see my ships moving in the grey area below the stage, not on the stage. So how do i make them spawn within the background so i can see them?
Under rating threshold (hideshow)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111111111
Under rating threshold (hideshow)
it wont let me make on :(!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Under rating threshold (hideshow)
I love it how it gives you chance to change things, i changed my ship to blue and all the background to coloured it was cool ^^
Under rating threshold (hideshow)
Kiki123987 The Error may be in the Ship file I think you didn't set ship EnemyTimer to 0. Without it you will only get one ship see following:
enemyTimer += 1;
if(enemyTimer > 60)
{
enemyTimer = 0;
_root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
}
Under rating threshold (hideshow)
I followed everything it said and I have checked it all...
there only will be 1 enemy ship at the beginning of the game and then no other one will follow..?
Under rating threshold (hideshow)
Check for any missed out { or } they can affect the whle thing even if in a completley different location, I got those, turns out I missed an } at the very end of the script
Under rating threshold (hideshow)
I follow what it say, but i keep getting ActionScript 2.0 class scripts may only define class or interface constructs. for errors.
Help?
Under rating threshold (hideshow)
Here's a silly question: Why are missiles declared as variables (i.e. var missile = etc etc) and enemy ships simply attached to the root timeline? Oh yeah. 5 stars.