Under rating threshold (hideshow)
@jbob182: and
@dracado:
Had the same problem with background on the last shootorial. was only fixed when i checked to make sure it was a .PNG file to start with before converting to symbol. and also i had to change all the names (including that of the class and .as file) to bg1. try something similar to that for missile (i.e. msl1 ect.)
hope this helps...
Under rating threshold (hideshow)
@Alexandar_1998 now i dont use actionsricpt(goign to try to learn it tho) i use turing but you have to save the x and y values of the missile to an array when its shot and have an array that saves a boolean (true =shot false=not shot). if a missile is shot add to its x value till it collides , at which point it is not shot. This is very rough and untested in a program so twaek it a lot
Under rating threshold (hideshow)
I says that there is no such term as shootlimiter so im not limiting my missiles (no offence kongregate i like your shootorials)
Under rating threshold (hideshow)
**Error** Symbol=Missile, layer=Layer 1, frame=1, Line 1: The class or interface 'Missile' could not be loaded.
Help!!
Under rating threshold (hideshow)
to kilador's comment, i had the same problem, but then i created a layer named "missile" and copy, paste a picture of a missile into the "Ship.fla" and even after i deleted the layer and the copy my missiles where appering on the screen when i pressed space as they where meant to do
Under rating threshold (hideshow)
another problem: my game does only support 2 buttons pressed at a time. for example if i press space, up and right at the same time the ship only moves upwards and is firing :-/
Under rating threshold (hideshow)
my missiles start somewhere behind the ship. i can correct that if i change the line in the ship.as to missile._x = _x + 470;. then they start at the nose of the ship. but that's not according to the tutorial? oO
Under rating threshold (hideshow)
This statement is not permitted in a class definition. I get this when I type in if( Key.isDown(Key.SPACE) )
What can I do?
Under rating threshold (hideshow)
-roughpath, make sure you have saved your scripts since editting them.
-scaryfighter, you may have the _x value wrong in the this.removeMovieClip() loop.
-juha686, might sound odd, but in the "missile._x = _x + 50" line, is your 50 a variable that changes during runtime rather than being a constant number?
Olimar72, sounds like you have your Key.isDown(Key.SPACE) outside of the class. You have to make sure it is INSIDE the first and last curly brackets that hold the classes contents.
Under rating threshold (hideshow)
when i followed this kinda i made some errors, but when i went back and followed it perfectly! there were not mistakes and it worked fine
Under rating threshold (hideshow)
Everything works great but the missiles dont always come out of the nose, when i first fire they do but if u move upward, the missiles come between you and the starting point.
Under rating threshold (hideshow)
for some reason i can't get the missiles to appear. everything else works and if i put a missile in it will move but i cannot make one be shot. i'm not even getting any errors it just doesn't shoot when i push space. any ideas?
Under rating threshold (hideshow)
**Error** C:\Users\HP_Administrator\Desktop\Flash\Shoot\Ship.as: Line 21: ActionScript 2.0 class scripts may only define class or interface constructs.
if( Key.isDown(Key.SPACE) )
Total ActionScript Errors: 1 Reported Errors: 1
How do I fix?
Under rating threshold (hideshow)
This is wrather easy, the problem with it being most kids have a hard time reading into detail, which is essential for flash developing... It's a skill that is hard to teach, and even harder to learn..
Under rating threshold (hideshow)
Ok hang on, he made a mistake, on
page 2 it tells you to make a var for speed, but then on page nine it tells you to overwrite it as var velocity, and at that moment when you do that and try to play, the bullets don't move, but if you keep it as speed and then add the shootlimiter, the bullets move again..
Under rating threshold (hideshow)
On page 9 when it tells me to c/p the new stuff over the space control thing, my game runs but the controls become locked for some reason, can't move or shoot..
Under rating threshold (hideshow)
Alright lol, that's also been solved, but i think this problem is unsolvable.
Line 34: ActionScript 2.0 class scripts may only define class or interface constructs.
}
Total ActionScript Errors: 1 Reported Errors: 1
Under rating threshold (hideshow)
Actually , i think ive solved that, however im experiencing a different problem now ¬_¬
\Documents\Flash games\Ship.as: Line 30: This statement is not permitted in a class definition.
Any help? thanks.
Under rating threshold (hideshow)
My missiles disappears only after 3/4 of the screen... i tryed to put a higher value on the if(_x > 600) but itnot working. i can put it lover.
Under rating threshold (hideshow)
Dracado, make sure your missle has the speed variable correct and its movement right.
make sure you created your speed variable.
and make sure you set its speed to 20
then put its movement per frame
(make sure all text is same in variables, caps count)
function onEnterFrame()
{
_x += speed;
}
Under rating threshold (hideshow)
These tutorials are amazing. They actually teach you. I have already finished my first game. See it at http://www.kongregate.com/games/rosslyn568/planet-defender ---- anyway, great tut. 5/5
Under rating threshold (hideshow)
My missile keeps coming out from the middle of the ship and up a bit. And it's not got a transparent background, it's in a white box. How do I fix it?
Under rating threshold (hideshow)
missiles aren't working i get this error but dont know why
**Error** Symbol=Missile, layer=Layer 1, frame=1, Line 1: The class or interface 'Missile' could not be loaded.