help checking were is the enemy
I am trying do the following, however i do not know how to check were the enemy is the current frame settings are 640 x 480
The play area currently 1280 x 960 TESTING
The line of sight is just a small active that is scaled and rotated between the enemy and the player.
spread a value "0" in the ID variable
of the enemies.
Start the loop "Number of enemies" times.
* LOOP enemies
+ Is the current enemy in the frame?
Enable Group
>>
* LOOP enemies
+ Is the current enemy NOT in the frame?
> Disable Group
== GROUP enemy loop ==
* LOOP enemies
ID of enemy is = LoopIndex("enemies")
> pick a enemy at random and Place line of sight
* LOOP enemies
ID of enemy is = LoopIndex("enemies")
+ Line of sight collides with player?
> Do something
Re: help checking were is the enemy
I have a demo of this working if anyone is intrested.
Altough somewhat changed to also incorp the player hiding behind say a house/wall or other.
Each enemy works independ from each other and only the current enemy takes the required action.
All enemies copied and pasted onto the play area.
Even though i get little help i wish to share my sucess!
Re: help checking were is the enemy
I'm interested!
Where can I view it?