
-----------------------------------
Hopping
Sun Feb 12, 2012 2:45 pm

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[/code]

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

-----------------------------------
Hopping
Sun Feb 12, 2012 2:47 pm

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.

-----------------------------------
ihsh
Sun Feb 12, 2012 4:39 pm

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 ().

-----------------------------------
mirhagk
Sun Feb 12, 2012 7:45 pm

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)

-----------------------------------
Velocity
Fri Feb 17, 2012 8:23 am

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...

-----------------------------------
Aange10
Fri Feb 17, 2012 5:37 pm

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). 

-----------------------------------
mirhagk
Sat Feb 18, 2012 1:10 am

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.
