Author |
Message |
Hopping
|
Posted: Sun Feb 12, 2012 2:45 pm Post subject: How to make popup messages to user when game is over or cars crash? |
|
|
Basically, what I did in an IF statement to resemble a collision between 2 rectangles is:
code: | if yy1=yy12 or yy2=yy22 or xx1=xx12 or xx2=xx22 then |
if this statement is true (meaning their coordinates touch), then the two rectangles have crashed into each other so I want a message appearing saying that the drivers suck and they crashed, and see if they want to try again and restart the program.
How do I do that - show msg to the user, and what is that called?
Thnx |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Hopping
|
Posted: Sun Feb 12, 2012 2:47 pm Post subject: Re: How to make popup messages to user when game is over or cars crash? |
|
|
oops sorry, thought I was creating this thread in HELP section, please move it there mod, thnx. |
|
|
|
|
![](images/spacer.gif) |
ihsh
|
Posted: Sun Feb 12, 2012 4:39 pm Post subject: RE:How to make popup messages to user when game is over or cars crash? |
|
|
You can try opening another Turing window using Window.Open (). |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sun Feb 12, 2012 7:45 pm Post subject: RE:How to make popup messages to user when game is over or cars crash? |
|
|
You could just use cls and Font.Draw, as your are restarting the program anyways.
(ps to restart the program just use a loop around all your code) |
|
|
|
|
![](images/spacer.gif) |
Velocity
![](http://compsci.ca/v3/uploads/user_avatars/1809397984eb9e2888e99b.jpg)
|
Posted: Fri Feb 17, 2012 8:23 am Post subject: RE:How to make popup messages to user when game is over or cars crash? |
|
|
you could redirect them to an html site that you coded that says you sucks.
Using Net.OpenConnection (''site goes here''), i think that was the syntax... |
|
|
|
|
![](images/spacer.gif) |
Aange10
![](http://compsci.ca/v3/uploads/user_avatars/19166165534f400d42de502.png)
|
Posted: Fri Feb 17, 2012 5:37 pm Post subject: RE:How to make popup messages to user when game is over or cars crash? |
|
|
Or if you are looking to make a popup window you can use View.Set ("popup")
"visible", "invisible", "popup" - Causes the active window to become visible (invisible or, for popup, invisible until input or output occurs in the window). |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Feb 18, 2012 1:10 am Post subject: RE:How to make popup messages to user when game is over or cars crash? |
|
|
That isn't popup in that sense that your thinking. It simply doesn't appear until you draw something to it. It is quite clear though that a pop up window is not even necessary. |
|
|
|
|
![](images/spacer.gif) |
|