Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
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
Develop games in your browser. Powerful, performant & highly capable.
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
ramones Thank you so much it work, thanks everyone!