When enemy collide with player it display Game over text less then 1 second, whereas i want to display game over text until user restart the game
On start of layout - set text to invisible
Player on collision with enemy - set text to visable
Develop games in your browser. Powerful, performant & highly capable.
Also its probably better to create it when you need it, so you don't have it around when not needed, like so:
On collision with Enemy Create Object txt_Endgame at position (X,Y) On click btn_RestartGame Destroy txt_Endgame [/code:3nmhilh1]