game over text display

Just started using Construct 2? Post your questions here

Post » Tue Feb 17, 2015 8:26 am

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
B
5
Posts: 14
Reputation: 253

Post » Tue Feb 17, 2015 9:52 am

On start of layout - set text to invisible
Player on collision with enemy - set text to visable
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,145

Post » Wed Feb 18, 2015 3:21 am

Also its probably better to create it when you need it, so you don't have it around when not needed, like so:


Code: Select all
On collision with Enemy
       Create Object txt_Endgame at position (X,Y)

On click btn_RestartGame
       Destroy txt_Endgame
B
41
S
10
G
2
Posts: 1,159
Reputation: 6,542


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest