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
S
1
G
2
Posts: 16
Reputation: 832

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
96
S
34
G
33
Posts: 3,007
Reputation: 27,921

Post » Tue Nov 30, 2010 11:49 am

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

Post » Thu Dec 02, 2010 4:11 pm

*push*
B
2
S
1
G
2
Posts: 16
Reputation: 832

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 Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
144
S
50
G
20
Posts: 2,274
Reputation: 23,002


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests