Function

Just started using Construct 2? Post your questions here

Post » Wed Apr 30, 2014 9:11 am

my problem is all the spawner produce bullets at the same time.
Is there any way to pick the spawner which calls the function only?
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Wed Apr 30, 2014 9:28 am

try adding a "for each" spawner
subevent
action=4 then call function
B
15
S
6
G
4
Posts: 277
Reputation: 3,948

Post » Wed Apr 30, 2014 9:35 am

the spawner with action 3 also spawn bullets
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Fri May 02, 2014 9:54 am

StormHo wrote:my problem is all the spawner produce bullets at the same time.
Is there any way to pick the spawner which calls the function only?


Pass Spawner.UID as a parameter

The just under you On call, use the spawner condition Pick by unique ID, and it will ask the UID, enter Function.Param(0)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat May 03, 2014 1:10 pm

Thanks,it works!
B
17
S
4
G
1
Posts: 203
Reputation: 1,583


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests