Problem with rotating Bullets

For questions about using Classic.

Post » Mon Nov 29, 2010 10:35 pm

Hi,
ive created a swarm of enemies which follow the following Event Sheet and shell shoot towards my charakter.
But somehow only one single enemy does so. The rest just shoot straight ahead.
I tried to target them as a family but this didnt work either. Still only one of them responded...

+ System: Every 3500 + random(1500) milliseconds
+ Enemy: Is on-screen
-> Enemy: Spawn object AmmoEnemy on layer 1 (image point 1)
-> AmmoEnemy: Set angle towards Charakter
B
2
G
2
Posts: 16
Reputation: 682

Post » Mon Nov 29, 2010 11:32 pm

Upon creating an object construct deselects all other instances of that object except the one created. Try this:

+ System: Every 3500 + random(1500) milliseconds
+ Enemy: Is on-screen
-> AmmoEnemy: Set angle towards Charakter
-> Enemy: Spawn object AmmoEnemy on layer 1 (image point 1)
-> AmmoEnemy: Set angle towards Charakter
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Nov 30, 2010 11:49 am

Im afraid it still doesnt work. Any other idea?
B
2
G
2
Posts: 16
Reputation: 682

Post » Thu Dec 02, 2010 4:11 pm

*push*
B
2
G
2
Posts: 16
Reputation: 682

Post » Thu Dec 02, 2010 4:36 pm

Maybe try calling a function to spawn the other bullets? Or putting sub event of "for each bullet" and setting that to "AmmoEnemy: Set angle towards Charakter"
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests