Computer Science Canada How to make popup messages to user when game is over or cars crash? |
Author: | Hopping [ 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:
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 |
Author: | Hopping [ 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. |
Author: | ihsh [ 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 (). |
Author: | mirhagk [ 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) |
Author: | Velocity [ 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... |
Author: | Aange10 [ 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). |
Author: | mirhagk [ 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. |