I'm still fresh with this program, and I was wondering how one would go about making it so that an object or sprite ( specifically enemies ) do not start moving or anything until the player is within a certain distance from the enemy, or until the enemy is on the player's screen.
The simplest way would be to use the built in 'is on screen' condition
+If Enemy is on screen >move enemy
I left 'move enemy' ambiguous because it depends on how you are moving him, a behaviour? platformer or 8direction? or your own movement with events?
Platformer, I tried "is on screen" condition before, but it didn't work. Is there something else I have to add ?
what was the action that followed?
I suspect that the condition was being met fine, just the action wasn't right..
Develop games in your browser. Powerful, performant & highly capable.
Right now I have it as:
System, on Start of Layout: Set Sprite Custom Movement to Disabled
|
--- Sprite, is visible: Set Sprite Custom Movement to Enabled
Set Custom Movement Horizontal Speed to 100