Multiple instances, containers and LOS.

For questions about using Classic.

Post » Mon Jan 11, 2010 7:34 pm

Okay, as I do not want the enemy object itself to rotate but want it to have limited view relative to angle, I created an enemy "eye" object, placed it in the enemy's container and have it always set it's position to the enemy.
It works fine ,I can see that the enemy "eye" object is spread out correctly on the multiple instances of enemies.
The event :

For each "eye" object
if Eye object has LOS to player

THEN

Enemy : Set value ('seesplayer') to 1

What I'm wondering, is if there should be another "for each object" condition for "enemy" or if "for each eye object" automatically selects the enemy object of which it is contained.
B
2
G
3
Posts: 25
Reputation: 900

Post » Mon Jan 11, 2010 8:27 pm

They're in a container so yes, the enemy that matches up with the eye in the condition should be picked for you.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Jan 11, 2010 10:57 pm

Thanks :D .
B
2
G
3
Posts: 25
Reputation: 900


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests