Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 View.Set("screenonly")
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Guest




PostPosted: 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
Sponsor
sponsor
Guest




PostPosted: Fri Jun 09, 2006 10:15 am   Post subject: Attachment

Here, I will attach the game.


Sun Fighters.t
 Description:

Download
 Filename:  Sun Fighters.t
 Filesize:  8.34 KB
 Downloaded:  61 Time(s)

HellblazerX




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Mon Jun 12, 2006 1:01 pm   Post subject: (No subject)

or you can just implement Time.DelaySinceLast Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: