Computer Science Canada I can't do a boundary for my circle race track. |
Author: | raindrop [ Tue May 18, 2004 2:26 am ] |
Post subject: | I can't do a boundary for my circle race track. |
I created this car race game but I needed some kind of boundary to keep the two cars inside the circle race track. I tried using Math.Distance, but i don't think that works. Does anyone know how to set up this boundary limit? I attached my game and the 2 cars that u will need in order to run the game. Thank you for your help. |
Author: | McKenzie [ Tue May 18, 2004 8:02 am ] |
Post subject: | |
As far as your Distance goes, it doesn't work because you will want to check if the distance is <= 200 not =200. Also you are not checking for blue at all. Some other areas to look at: 1. Use offscreenonly with View.Update 2. Use Input.Keydown for keyboard control |