Hi,
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player) and then stop/explode when it reaches the crosshair location. Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates.
I have been using Visual Studio 2008 as that is the version used by my Uni.
Thanks.
Edit: To play the game the controls are set up with W, A, S, D for movement and Space for shooting, I am working on getting it to use the mouse.
Edit 2: The Bullet class is the players Rocket (The blue one) and the Rocket class is the NPC rockets (The Red ones).
Show differencesHistory of post edits
#3ronnieb555
Posted 20 May 2012 - 01:13 PM
Hi,
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player) and then stop/explode when it reaches the crosshair location. Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.
Edit: To play the game the controls are set up with W, A, S, D for movement and Space for shooting, I am working on getting it to use the mouse.
Edit 2: The Bullet class is the players Rocket (The blue one) and the Rocket class is the NPC rockets (The Red ones).
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player) and then stop/explode when it reaches the crosshair location. Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.
Edit: To play the game the controls are set up with W, A, S, D for movement and Space for shooting, I am working on getting it to use the mouse.
Edit 2: The Bullet class is the players Rocket (The blue one) and the Rocket class is the NPC rockets (The Red ones).
#2ronnieb555
Posted 20 May 2012 - 01:08 PM
Hi,
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player) and then stop/explode when it reaches the crosshair location. Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.
Edit: To play the game the controls are set up with W, A, S, D for movement and Space for shooting, I am working on getting it to use the mouse.
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player) and then stop/explode when it reaches the crosshair location. Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.
Edit: To play the game the controls are set up with W, A, S, D for movement and Space for shooting, I am working on getting it to use the mouse.
#1ronnieb555
Posted 20 May 2012 - 01:06 PM
Hi,
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player). Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.
For my assignment at University I am required to create an old arcade game, I chose Missile Command. I have some things working in the game but something I cannot get to work is getting the rocket to fly towards the crosshair (the player). Does anyone know how I can do it? #
So far I have the rocket flying towards the crosshair but the rocket is not starting from the base (blue triangle), it is starting at the same X coordinate as the crosshair.
My game will be attached to this thread.
To get the game to run you will need to change the directory of the images located on lines 113+ on Form1 as I have not found out how to save the image files within the program.
If you can help can you reply as soon as possible as I have a deadline that is fast approaching and I am focusing all my attention to this part of the game as it it the most important part. Please ignore the falling missiles from the top of the screen, I am also working on this to get them to spawn randomly across the X coordinates
Thanks.