Under rating threshold (hideshow)
My ship won't move the backround won't scroll and I can't shoot missiles oh, and I have no enemy ships showing up, could it get worse?
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)
Great tutorial it work even though i had a problem where there spawned ships constantly and there was like thousands ships on the schene
Under rating threshold (hideshow)
I did everything exactly as the tutorial said, but no enemy ships are appearing, im not getting an action script error either.
Under rating threshold (hideshow)
help my enemyship do appear but in the left corner i looked everywere and the only thing is that it cant load the enemyship
Under rating threshold (hideshow)
The class 'EnemyShip' needs to be defined in a file whose relative path is 'EnemyShip.as'.
i'm having this problem with making the enemyship appear, it wont load because of the above error.
i've retyped/copied everything several times.
Please help
Under rating threshold (hideshow)
Hint: if you don't give the same name to something and you paste some text, make sure you change ALL the words that you have to.
Under rating threshold (hideshow)
i got this far n its taken me hours its just if something does not work just delet n repet thats wht i do n it always gets me through :D
Under rating threshold (hideshow)
help. Its been fine up to this point, then suddenly its saying everything that contains "extends MovieClip" is a syntax error. any hints? cuz i'm stuck.
Under rating threshold (hideshow)
For having different kinds of enemies spawn. Try just making another actionscript file with the same coding and such, it would just have like a different instance name. Such as EnemyShip and EnemyShip1.
Under rating threshold (hideshow)
I am having a problem, I looked everywhere. I followed the tutorial as close as possible. and for some reason, the EnemyShip's wont appear at all. Does anyone have an idea to what my problem is?
Under rating threshold (hideshow)
These have been really helpful
ive been making a vertical scroller off of these and yet to have a problem that couldnt be solved without a little experimenting
Under rating threshold (hideshow)
HELP!!!
When ever I publish my game it always says this
"The class 'EnemyShip' needs to be defined in a file whose relative path is 'EnemyShip.as'.
class EnemyShip extends MovieClip {"
Under rating threshold (hideshow)
lol so picky XD. im like: "y do they appear in the upper left caorner?!?" after like 5-10 min i see the C in class enemyship extends MovieClip is a capital letter. o.0
Under rating threshold (hideshow)
@ urbano148
Try checking your enemy ship properties -> class "name" are the same as the "class "name" in the AS file.
Also check if you have linked the AS file correctly with your fla file.
check this vid: http://www.youtube.com/watch?v=B17Q1VFKW8o
(its CS4, but its the same method in CS3)
Under rating threshold (hideshow)
@Raugion
The reason is that Random generates a number between 0 and 1. If it's 0*250, It's still gonna be 0, and your ship is gonna spawn at the very bottom of the screen, If you do *200 + 50, Even if it is 0, you still have a +50 which makes it not be 0.
Under rating threshold (hideshow)
i had the same problem bn1515, i solved it adding the speed value
try this :
function onLoad()
{ speed = 10;
_x = 700;
_y = Math.random()*300;
speed = Math.random()*5 + 5;
}
Under rating threshold (hideshow)
if i put a enemyship into the stage myseld and do not delete it will fly by, but if i dont have a enemyship in the stage when it starts then no enemys come in the stage
Under rating threshold (hideshow)
if you can move, the error is in the EnemyShip.as file. Check for spelling errors, mine wouldnt work until i saw i accidently put function onEnterFram();
so check for spelling errors in that file, and it should work
Under rating threshold (hideshow)
yes theres a reason and its pretty clearly visible, if you put 250 it gives a random number between 0 and 250 instead of between 50 and 250
Under rating threshold (hideshow)
Quick Question: Instead of putting in *200 + 50 wouldn't it be simpler to just do *250 or is there a reason it doesn't have that
Under rating threshold (hideshow)
theman123321: You sure you are doing it in as3? elswise you maybe need to look over it again, make sure stuff is in the right place, cnp will probably give u errors because you put it in the wrong place/