PDA

View Full Version : Firing Problems



Ithaca
January 17th, 2005, 08:13 PM
I have made the beggings of a game and have got my character to run, jump and shoot but when he does shoot his bullet only travels to the right even if he is facing left. Also I need to know how to limit the amount of bullets he can fire per second. I have the source code below for both MX 2004 and MX.

(P.S. feel free to change anything you think I did poorly.)

Pattt
January 18th, 2005, 03:13 AM
I fixed it for u!
I changed the framerate, it looks better now. :D you can still change it back if u want. ;)
EDIT: "Key.SPACE" to fire!

Inferno
January 18th, 2005, 11:07 AM
the file isnt mx anymore

Ithaca
January 18th, 2005, 04:53 PM
thanks :) I think it looks a little better too now, but he still fires only to the right and can fire as many shots as he wants. Does anyone know how to fix that? :puzzled:

Ithaca
January 21st, 2005, 11:04 PM
Hello.......?

Does anyone have any more ideas on how I can fix my problem? If this helps I posted my swf.

signifer123
January 22nd, 2005, 03:46 PM
ok i fixed it but its too big for an attachment...

http://members.lycos.co.uk/signifer123/upload/Game.fla

Ithaca
January 22nd, 2005, 04:49 PM
Thank you very much! :) I looked at the code but I couldn't understand what you did. Could you please explain the code so I could duplicate it if I want to make other games. Thanks for all the work you already put in!

signifer123
January 22nd, 2005, 07:10 PM
ok i had it so when he moved left it changed the root variable facing to say he is facing left and the reverse for right

then on the bullets it read that code on its creation ad told itself which way to go