How do I display text after all enemies destroyed?

Get help using Construct 2

Post » Wed Apr 01, 2015 2:14 am

i'm stuck on displaying text after all enemies destroyed. how to make an enemy object appear after player touches the screen anywhere, then the enemies appear randomly up to 15 objects. after all enemies destroyed (all of fifteen enemies) I wanted to make the text appear. And after the player touches the screen anywhere, then go to second layout.


Thanks for any help??
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Wed Apr 01, 2015 3:16 am

We have a feature in our game that loads text on the screen via a Layout change when X number of enemies are killed.

The way we set it up is:
Global number Kills = 0 (at start of Layout)
Enemy - Health <= 0 - Enemy - Destroy / System - Add 1 to Kills
System - Kills = ## - System - Go to LayoutXYZ

LayoutXYZ then displays text and Waits before going to the next Layout.

Not sure if it is the best way, or if it is even the way you are looking for, but it works for us.
B
7
S
3
Posts: 30
Reputation: 687

Post » Thu Apr 02, 2015 4:19 am

@gmgllc
thank you for your help. I've tried your way, but it does not work.
I want to make all the enemies destroyed and then display the text "touch anywhere", and when the player touches the screen, then go to the layout xx.
and first, before the enemies appear, there is a text "Ready?". when the player touches the screen, the enemies will appear.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Thu Apr 02, 2015 8:32 am

B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072


Post » Sun Apr 05, 2015 11:58 am

@korbaach thanks for your help, and it was very helpful.

@Lordshiva1948 link that you give can not be accessed, it said "The folder '/Demos' does not exist." .
is there something wrong?

thank you everyone for your help.. :)
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Apr 05, 2015 8:18 pm

Sorry. Reason dropbox is not working because my grandson has deleted the folder and cancel the dropbox
B
257
S
43
G
15
Posts: 1,992
Reputation: 41,535

Post » Mon Apr 06, 2015 6:13 am

yea, it's okay,, :)
thanks anyway
B
9
S
2
G
1
Posts: 28
Reputation: 671


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests