Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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
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.
How do I keep the indicator inside the window?
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.
https://www.scirra.com/tutorials/353/of ... indicators
Develop games in your browser. Powerful, performant & highly capable.
ramones Thank you so much it work, thanks everyone!