Under rating threshold (hideshow)
to anyone who says their script is correct -- after double/triple-checking look if you named your files correctly. ALL the files from the Name,Class,Identifier,AND Action Script file should be the same -- I spelled Missile like this "Missle" a) it did not get to the script and b) the class was non-existent
Under rating threshold (hideshow)
Enemys appear in pairs and only one of the pair will die by missile. The other is only killable by hitting it with the ship. I dont know what I did wrong! Please help!
Under rating threshold (hideshow)
i cant download the source files :S
i tried to open the link in a new window like someone said and the window just closed straight away :(
ill have to try later
Under rating threshold (hideshow)
Collision with enemy ships work, ship missile collision with enemies work, enemy missile collision with ship neither explode or remove ship clip. Any ideas?
Under rating threshold (hideshow)
@L0lKing
try to open the link in a new tab or window :)
and my problem is how to make my own animated explosion :(
just make a gif in imageready and import it in flash?? dunno :D
Under rating threshold (hideshow)
ok 1) my explosion is occurring up and left of my ship. 2)my missiles don't do anything. 3) if im in front of the enemy the missiles will cut off before getting to me and the enemy fires before its supposed to
Under rating threshold (hideshow)
The location settings to get my explosions to line up with my enemy ships are _x= _x +125; _y= _y-50;
any one know why?????
Under rating threshold (hideshow)
I'm having trouble with the explode function, I can explode the EnemyShip on collision with my ship (without function), but i can't get it to explode when contacting a missile (im using CS4)
Under rating threshold (hideshow)
ok the enemys arn't dissapearing.
this is my code:
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();
}
if (this.hitTest(_root.ship)) {
explode();
}
function explode() {
this.removeMovieClip();
}
}
}
Under rating threshold (hideshow)
I did the same thing as Aquakool, I think the problem is about the explode function, it doesn't do anything, but if you repace it with this.removeMovieClip the enemy ships dissappear as they collide with hero ship.
Under rating threshold (hideshow)
To all users having issues with the collision, see if your this.removeMovieClip() in class EnemyShip has really got the parentheses. If this is not the problem dowload the source file by ctrl clicking on the link and see what's different in your game.
Under rating threshold (hideshow)
I'm using CS4 and it's not recognizing the explode function. It still recognizes collision when I type in if(this.hitTest(_root.ship))
{
this.removeMovieClip();
}
but when I type in
if(this.hitTest(_root.ship))
{
explode();
}
it doesn't recognize the collision. What's going on?
Under rating threshold (hideshow)
it was pretty easy cuz im programming c++ and i know the main basics in lot of other languages... This tutorial helped me REALLY it was GREAT. nothing left to say about it, you will understand it im sure there!
Under rating threshold (hideshow)
when u have an object in the game from the beginning, its depth will be negative. Put this code in the onLoad() function and the collisions should work.
this.swapDepths(_parent.getNextHighestDepth());
Under rating threshold (hideshow)
This doesn't work, I writed all the code, the part of the EnemyShip when the enemy collide with the ship they still there.
Any1 knows what's wrong?
Under rating threshold (hideshow)
I can't seem to download the source file/fla. I haven't been able to for any of the other shooturials either. I don't know why. HELP PLEASE
Under rating threshold (hideshow)
I've the same collision problem here: whenever my ship hits the enemies, nothing happens. I'm using CS4, if that matters. Please, someone help. It won't work even if I put a collision check in both the player's ship .as and the enemy ship .as
Under rating threshold (hideshow)
This tutorial was byfar the hardest and I understood about 20% of what was going on. at least i made it through it. i had to make my own explosion clip which was hard to figure out..
Under rating threshold (hideshow)
If the ctrl click thing still isnt working, http://chat.kongregate.com/gamez/0002/6223/live/assets/source_files.zip
:)
Under rating threshold (hideshow)
flash dosnt detect anything wrong but the enemies is still there when i hit them! I copied everything from the tutorial TWO TIMES but it still dosnt work!
Under rating threshold (hideshow)
With my bullets they simply pass through the enemies, which die after about 2 seconds. Anyone know what's happening? Btw when I crash my ship into them that still works.
Under rating threshold (hideshow)
for all those who can't download the files from the first page, HOLD THE CONTROL BUTTON AND CLICK... you're welcome! keep this comment alive :)