PDA

View Full Version : My game..



Lewwy
July 15th, 2005, 02:27 PM
...wont work :'( .

http://www.evolewtion.co.uk/flash/space_game.fla

Please download my .fla and take a look at the bullet (Contained within the turret) and tell me why the bombs dont blow up when they are supposed to !

Ill be surprised if anyone can work their way through that .fla..

Please help. Its doing my nut in !

Thanks in advance..

mathew.er
July 15th, 2005, 03:35 PM
your fla is such mess. but if you add your hitTest function on enterframe event on your bullet mc, you can make it working.

Lewwy
July 15th, 2005, 03:38 PM
Tis a mess, but there is a method to my madness !

Thanks for your comment, it has brought a spark of hope into my mind. But could you give me an example of what you want me to to do to make it work?

Pretty Please?

mathew.er
July 15th, 2005, 03:53 PM
just select that mc which represents you bullet on the first frame when it starts moving and add something like:


onClipEvent(enterFrame) {
if(this.hitTest(_root.iDontRememberNameOfThatBomb) ) {
//send it to that frame... blow i think it was labeled
}
}

but the way you handle all this seems to me a bit strange. you can try to calculate an angle from this cannon and a place where you clicked and then shoot that way. also duplicating bullet and setting a shoot interval may be better so you dont reset this bullet.

Lewwy
July 15th, 2005, 04:05 PM
Im sorry, I even managed to balls that up :(

Could you alter it then upload it so I can *see* exactly what you are doing?

mathew.er
July 15th, 2005, 04:55 PM
i actualy had this done but then i accidentaly changed something and it all messed up

Lewwy
July 15th, 2005, 05:36 PM
Can you not do it again?

bandinopla
July 15th, 2005, 06:53 PM
Y dale con el puto hitTest ! Fuerzen un poco las neuronas y piensen un poco mas!!!

patricktheking
July 15th, 2005, 10:33 PM
na wont work... bullet is a mc and if u keep clicking it just goes to start. u need some code to atach a mc called bullet in that direction. lotta work. not just basic mc's and goto and plays. gonna need some as for that.