Anybody have any hints on how I could approach coding a system that would fire a 2d bullet, from a point, to an area of the screen above determined by the angle picked using keydown?
Kinda like the Bubble Bobble game where a bubble is fired from a fixed position and goes in the direction the arrow faces.
I'm assuming I would have to find the vector path. I tried using sin/cos to achive it but it ended up getting messy and complicated.
Any help would be appreciated, and please, if a code snippet is posted can you leave a little description of whats going on.
Thanks
Amon.
Kinda like the Bubble Bobble game where a bubble is fired from a fixed position and goes in the direction the arrow faces.
I'm assuming I would have to find the vector path. I tried using sin/cos to achive it but it ended up getting messy and complicated.
Any help would be appreciated, and please, if a code snippet is posted can you leave a little description of whats going on.
Thanks
Amon.