
-----------------------------------

Fri Jun 09, 2006 9:18 am

View.Set(&quot;screenonly&quot;)
-----------------------------------
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.

-----------------------------------

Fri Jun 09, 2006 10:15 am

Attachment
-----------------------------------
Here, I will attach the game.

-----------------------------------
HellblazerX
Fri Jun 09, 2006 10:34 am


-----------------------------------
Just put a View.Set ("offscreenonly") at the end of your Reset procedure.

-----------------------------------

Fri Jun 09, 2006 2:34 pm


-----------------------------------
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
Fri Jun 09, 2006 7:40 pm


-----------------------------------
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
Mon Jun 12, 2006 8:24 am


-----------------------------------
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
Mon Jun 12, 2006 1:01 pm


-----------------------------------
or you can just implement Time.DelaySinceLast  :wink:
