Game Development Community

Shooting + Movement

by rennie moffat · in Game Design and Creative Issues · 06/11/2009 (4:02 pm) · 1 replies

ok,
so I want to create a game where a player can shoot, move around etc. So I have the ability, now to move, but not shoot. I want to run some theory here to see where I am right wrong, etc.


So guy, I have given a player class, but the bullet needs to be triggered when I hit a button, and needs to appear out of the nozzle of the gun, no matter where it is on the screen. So there is one variable. But I am a little messed up here. What do I do?

Put both, all functions in one large code that includes shooting and movement properties? or do I something else? as in have separate behavior classes?


About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
06/12/2009 (11:58 am)
do you have your keybindings in?

you have to put in your fire keybinding in with your movement

are you using pure script or behaviors?

and when the fire function goes off you can get the ships position and
sync it to the middle right ect.