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

Username:   Password: 
 RegisterRegister   
 Multiple Window Data Transfer
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
void




PostPosted: Mon Jun 09, 2003 8:12 am   Post subject: Multiple Window Data Transfer

Oky, heres the problem..i have this gay ass space shooter game, and i cant display the score on the same window, because i use cls alot, and thus making it hard for the player to see his/her score...now..when i shoot and hit...it tells me how many points i gain and howmuch i have...but only for like .5 seconds...now...i wanna make it so that the player can play in one window, and a secondary window that i will open will display the score...never needing to cls....is this possible...if yes...how would i go about sending data to taht window for display..thank you
Sponsor
Sponsor
Sponsor
sponsor
Prince




PostPosted: Mon Jun 09, 2003 10:03 am   Post subject: (No subject)

update the score normally and use Window.Select (winID) to put the score in the other window... dont forget to switch back for the game or itll get very screwy
Mephi




PostPosted: Mon Jun 09, 2003 11:03 am   Post subject: (No subject)

use a delay when sum1 gets hit or sumthin....
ShadowStorm




PostPosted: Mon Jun 09, 2003 3:32 pm   Post subject: (No subject)

If you use delay.. the game would stop.. i don't think he want's that to happen..
void




PostPosted: Mon Jun 09, 2003 3:56 pm   Post subject: (No subject)

thanks prince
void




PostPosted: Mon Jun 09, 2003 4:05 pm   Post subject: (No subject)

one more thingy..how do u position ur screen aagain when u open it.....
PaddyLong




PostPosted: Mon Jun 09, 2003 4:33 pm   Post subject: (No subject)

var window : int := Window.Open ("position:x;y")
Andy




PostPosted: Mon Jun 09, 2003 5:24 pm   Post subject: (No subject)

ya, but u dun even have to use Window.Open you can just use setscreen
code:

setscreen("position: center;center)
setscreen("position: center;top")
Sponsor
Sponsor
Sponsor
sponsor
PaddyLong




PostPosted: Mon Jun 09, 2003 7:09 pm   Post subject: (No subject)

well if he's going to be using multiple windows, he kinda needs Window.Open
Andy




PostPosted: Mon Jun 09, 2003 7:19 pm   Post subject: (No subject)

true, u got a point there
Andy




PostPosted: Mon Jun 09, 2003 7:20 pm   Post subject: (No subject)

hey does any body know how to close a window that wasn't opened with Window.Open?
PaddyLong




PostPosted: Mon Jun 09, 2003 7:29 pm   Post subject: (No subject)

I would have thought something like this would have worked, but apparently you're not supposed to be able to close the main run window...

code:

var activeWindow : int
activeWindow := Window.GetActive
Window.Close (activeWindow)
Andy




PostPosted: Mon Jun 09, 2003 7:32 pm   Post subject: (No subject)

damn, cause its real screwy if u have gui on a opened window
Mazer




PostPosted: Mon Jun 09, 2003 7:36 pm   Post subject: (No subject)

dodge_tomahawk wrote:
hey does any body know how to close a window that wasn't opened with Window.Open?

i'm pretty sure you can't. just start your program with your Window.Open window or at least make sure you don't draw/put before it's opened
PaddyLong




PostPosted: Mon Jun 09, 2003 7:38 pm   Post subject: (No subject)

if it's something like a game or something where I care about what size the window is or whatever I'll usually always have my first line as my window
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 2  [ 24 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: