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.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Guest
|
Posted: Fri Jun 09, 2006 10:15 am Post subject: Attachment |
|
|
Here, I will attach the game.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Sun Fighters.t |
Filesize: |
8.34 KB |
Downloaded: |
61 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
HellblazerX
![](http://www.plamania.co.kr/shopimages/plmtest/2910040000213.jpg)
|
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.
|
|
|
|
|
![](images/spacer.gif) |
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?
|
|
|
|
|
![](images/spacer.gif) |
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.
|
|
|
|
|
![](images/spacer.gif) |
codemage
![](http://usera.imagecave.com/codemage/codemage-small.gif)
|
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.
|
|
|
|
|
![](images/spacer.gif) |
TheOneTrueGod
![](http://www.drmcninja.com/images/mcninjab3.jpg)
|
Posted: Mon Jun 12, 2006 1:01 pm Post subject: (No subject) |
|
|
or you can just implement Time.DelaySinceLast
|
|
|
|
|
![](images/spacer.gif) |
|