Computer Science Canada Exiting a program? |
Author: | SunsFan13 [ Fri May 09, 2008 9:40 am ] | ||
Post subject: | Exiting a program? | ||
The teacher explained to me, or tried, how to do this, but I didn't really understand. Basically, I need it when one ball "hits" the other, for it to exit. At the moment, when one ball "hits", it just puts "You hit him" and totally glitches out, I need it to exit. Thanks in advance, Chris ![]() |
Author: | petree08 [ Fri May 09, 2008 9:42 am ] |
Post subject: | RE:Exiting a program? |
Don't use processes, weird things happen with processes also i wouldn't use whatdotcolor for collision detection find the length between the two balls and when the length is lesser than the radius then they have hit each other. this way you only have to check for collision once |
Author: | SunsFan13 [ Fri May 09, 2008 9:53 am ] |
Post subject: | Re: Exiting a program? |
Yeah, and I wouldn't, except thats how we've been taught, so thats how he wants it done. He said something about using true/false statements, but I'm not sure how to do it really. So, help with what I need .. using the existing code? |
Author: | SunsFan13 [ Mon May 12, 2008 10:22 am ] |
Post subject: | RE:Exiting a program? |
No body can help me? :\ |
Author: | S_Grimm [ Mon May 12, 2008 11:24 am ] |
Post subject: | RE:Exiting a program? |
var hit : boolean := false code between this put "You Hit Him" hit := true if hit = true then quit end if |