instance controlling

For questions about using Classic.

Post » Sun Aug 19, 2012 1:01 pm

+ enemy1: Value 'timer' Equal to 0
-> enemy1: Set angle towards player
-> System: Create object enemybullet1 on layer 1 at (0, 0) from enemy1 's pivot point
-> enemybullet1: Set angle to 90
-> System: Create object enemybullet1 on layer 1 at (0, 0) from enemy1 's pivot point
-> enemybullet1: Set angle to 95
-> System: Create object enemybullet1 on layer 1 at (0, 0) from enemy1 's pivot point
-> enemybullet1: Set angle to 85

from script above, i want every enemy1 to shoot out enemybullet1 after timer ended or become 0
but, what i got is just one enemy1 that shooting out bullet
can someone point out where it goes wrong?

thanks
B
2
Posts: 3
Reputation: 306

Post » Mon Aug 20, 2012 4:55 pm

Do all your enemy1 objects use the same sprite? If so, perhaps you can wrap the events you listed above within a "for each object" loop.
B
6
Posts: 27
Reputation: 404

Post » Wed Aug 22, 2012 12:10 am

thanks, it works
B
2
Posts: 3
Reputation: 306


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests