How do I create alert indicator sprite in screen?

Get help using Construct 2

Post » Wed Jul 01, 2015 7:42 pm

The player is always on the screen(1280x720) and the layout size is 5000,5000. There are enemies ships that are inside the layout, but not on screen. How do I make an alert indicator sprite that indicates that a enemy ship is coming towards the player?

Here is a image example:

https://www.dropbox.com/s/wb7ooall7d2kl ... .png?dl=0#

Thanks in advance
B
12
S
4
G
1
Posts: 100
Reputation: 2,362

Post » Wed Jul 01, 2015 9:05 pm

You could set a boolean on the enemy, and if your game logic triggers the enemy to go towards the player, set the boolean.

And looping through the enemies you could have an indicator appear if the boolean is set.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Jul 06, 2015 6:38 pm

How do I keep the indicator inside the window?
B
12
S
4
G
1
Posts: 100
Reputation: 2,362

Post » Mon Jul 06, 2015 6:48 pm

Create a layer for the UI and set its parallax to 0,0. Add the alert sprite to that layer and set its visibility to false. When the alert is triggered, have it set the sprite's visibility to true.
B
11
S
2
G
1
Posts: 79
Reputation: 842

Post » Mon Jul 06, 2015 7:03 pm

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Mon Jul 06, 2015 11:18 pm

@ramones Thank you so much it work, thanks everyone!
B
12
S
4
G
1
Posts: 100
Reputation: 2,362


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests