Computer Science Canada A question on shooting... |
Author: | Remm [ Mon May 08, 2006 6:46 pm ] | ||
Post subject: | A question on shooting... | ||
Alright. After much trouble with account activation, i can finally ask about this. First, my program - in - the - works. Im not too good at turing, and prolly have high hopes to make this game. Anyone remember that old game where you were the little turret shooting down choppers and paratroopers, trying to stop them from touching the ground? I'm trying to re-create that game. However, im having troubles making the shots work. I shoot, and only bullet is fired, and it lazily follows the cannon around. Anyone know how i can fix it so the shot fires, and more than one can be fired at a time? Thanks again Remm
Its really early in, i know, but at least its a start. if anyone has any ideas for things that should be in the game, its all welcome. Thanks again. |
Author: | Remm [ Mon May 08, 2006 7:05 pm ] |
Post subject: | |
Oh, erm, and it also seems to be only moving to the top right. i could do a small fix so that at certian angles when shot, it goes in that direction ( i . e. when pointing strait up, cannon shoots bullet for x=0 and y= 1) but i cant think of any way to make the shots go accurately when its on a random angle... ideas? Thanks Remm |
Author: | Cervantes [ Mon May 08, 2006 7:09 pm ] |
Post subject: | |
Welcome to CompSci.ca! First, I suggest you read Why You Should Avoid Processes. Second, you'll need to know about Arrays and Flexible Arrays. Consult the Turing Walkthrough for links to tutorials on these subjects. The Flexible Array tutorial has an example of shooting bullets - probably fairly similar to what you're trying to do here. |
Author: | HellblazerX [ Mon May 08, 2006 7:12 pm ] |
Post subject: | |
It would also be useful to learn about records. There's a nice tut for records here. Also, for the angles of firing, you'll need to know some trig. And welcome to CompSci.ca! |
Author: | Remm [ Mon May 08, 2006 7:17 pm ] |
Post subject: | |
Thanks guys, i'll start looking through it after i finish posting other things ive been meaning to get to. I'll post the finished product in a while, if it ever gets finished. Thanks again. (no ones ever played the real thing of this!? it rocked) Remm |