Computer Science Canada What Went Wrong? |
Author: | TheLastFall [ Tue Oct 09, 2007 11:02 am ] | ||
Post subject: | What Went Wrong? | ||
Okay, I made this really horrible shooting process. For some reason the bullets don't go one by one but all at the same time, causing it to look messed up. I just want it to shoot one bullet at a time. But something went horribly wrong. Is there any possible way to fix it? I also just started Process and fork so don't knock me on how horrible they are. Here is the code.
Edited by Clayton: Try [code] tags next time, not italics tags. Where did I go wrong? Is it even possible to fix this code? Sorry code, you will be missed. ![]() |
Author: | Euphoracle [ Tue Oct 09, 2007 2:27 pm ] |
Post subject: | RE:What Went Wrong? |
You really shouldn't be using processes like that. You can accomplish all that correctly in just a loop. Processes in this situation like to cause instability and weird results if they conflict/are poorly coded. |
Author: | TheLastFall [ Thu Oct 11, 2007 10:05 am ] | ||
Post subject: | Re: What Went Wrong? | ||
Well I simplifyied my code... to some extent. Now I still have the same problem but with a little more added to it. After you view the code you'll understand what I mean.
Simple controls; WASD to move, space to shoot, and shift to reload although I haven't gotten to that yet. I'm confused to where the error is, but it's suppose to me just one little circle when space is pressed. Possibly any way to just cause one bullet to come out when space is pressed. At least slow down the shots. I just had to change a bit of the code. But I still have a problem with where the bullets appear and the shooting. |