Author |
Message |
Guest
|
Posted: 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.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Guest
|
Posted: Fri Jun 09, 2006 10:15 am Post subject: Attachment |
|
|
Here, I will attach the game.
Description: |
|
Download |
Filename: |
Sun Fighters.t |
Filesize: |
8.34 KB |
Downloaded: |
61 Time(s) |
|
|
|
|
|
|
HellblazerX
|
Posted: Fri Jun 09, 2006 10:34 am Post subject: (No subject) |
|
|
Just put a View.Set ("offscreenonly") at the end of your Reset procedure.
|
|
|
|
|
|
Guest
|
Posted: Fri Jun 09, 2006 2:34 pm Post subject: (No 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?
|
|
|
|
|
|
Hack.saw
|
Posted: Fri Jun 09, 2006 7:40 pm Post subject: (No 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.
|
|
|
|
|
|
codemage
|
Posted: Mon Jun 12, 2006 8:24 am Post subject: (No 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.
|
|
|
|
|
|
TheOneTrueGod
|
Posted: Mon Jun 12, 2006 1:01 pm Post subject: (No subject) |
|
|
or you can just implement Time.DelaySinceLast
|
|
|
|
|
|
|