Computer Science Canada View.Set("screenonly") |
Author: | Anonymous [ Fri Jun 09, 2006 9:18 am ] |
Post subject: | View.Set("screenonly") |
I'm having troubles with my game abit. I use View.Set("nooffscreenonly") to make it so you can see your text when you set the speed before the game begins. Then I switch to View.Set("offscreenonly") for my game, so I can show my other objects moving. Then I can go back to my main menu which switches back to "nooffscreenonly", but then when I re-enter the game, it stays "nooffscreenonly". I'll post up my code, help would be greatly appreicated. |
Author: | Anonymous [ Fri Jun 09, 2006 10:15 am ] |
Post subject: | Attachment |
Here, I will attach the game. |
Author: | HellblazerX [ Fri Jun 09, 2006 10:34 am ] |
Post subject: | |
Just put a View.Set ("offscreenonly") at the end of your Reset procedure. |
Author: | Anonymous [ Fri Jun 09, 2006 2:34 pm ] |
Post subject: | |
Thanks. Plus, I was using this at school perfectly, but now I'm at home, and when I die, the message appears "Player x wins", then after 1 second it doesnt wait for an Input.Pause and resets the game! I have to keep pressing ESC quickly to try getting to the menu, and it sometimes works. Any help here? |
Author: | Hack.saw [ Fri Jun 09, 2006 7:40 pm ] |
Post subject: | |
I had the same proble mwith alot of my games with differnt speed processors, i don't know if this will work but just try putting in a regular delay b4 u have to press Esc. |
Author: | codemage [ Mon Jun 12, 2006 8:24 am ] |
Post subject: | |
If you're using delays in the game, you should scale them to the computer's speed. The old-school way of doing this is asking the user how fast their computer is (and setting the delay accordingly). A better way would be for your program to actually find out how fast the computer is - and then scale the delays to fit. |
Author: | TheOneTrueGod [ Mon Jun 12, 2006 1:01 pm ] |
Post subject: | |
or you can just implement Time.DelaySinceLast ![]() |