Author |
Message |
void
![](http://www.ci.oshkosh.wi.us/Fire/images/SKULL.GIF)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Mephi
|
Posted: Mon Jun 09, 2003 11:03 am Post subject: (No subject) |
|
|
use a delay when sum1 gets hit or sumthin.... |
|
|
|
|
![](images/spacer.gif) |
ShadowStorm
![](http://sc.cpgl.net/starcraft/terran/images/t-gh.gif)
|
Posted: 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.. |
|
|
|
|
![](images/spacer.gif) |
void
![](http://www.ci.oshkosh.wi.us/Fire/images/SKULL.GIF)
|
Posted: Mon Jun 09, 2003 3:56 pm Post subject: (No subject) |
|
|
thanks prince |
|
|
|
|
![](images/spacer.gif) |
void
![](http://www.ci.oshkosh.wi.us/Fire/images/SKULL.GIF)
|
Posted: 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..... |
|
|
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: Mon Jun 09, 2003 4:33 pm Post subject: (No subject) |
|
|
var window : int := Window.Open ("position:x;y") |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: 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")
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Mon Jun 09, 2003 7:19 pm Post subject: (No subject) |
|
|
true, u got a point there |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: 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)
|
|
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Mon Jun 09, 2003 7:32 pm Post subject: (No subject) |
|
|
damn, cause its real screwy if u have gui on a opened window |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
|