What is the best way to have multiple bullets?

Get help using Construct 2

Post » Fri Feb 19, 2016 10:30 pm

What is the best way to have multiple bullets from the same family do different damage? I want all the bullets from the family to have the same properties but have different damage amounts they deal. Like a blue bullet does 1, a green does 2, and a red does 3. But I want them to be able to damage and be destroyed by the dame things. Any ideas?
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Fri Feb 19, 2016 10:39 pm

An family instance variable would work well for this.
B
94
S
33
G
113
Posts: 5,353
Reputation: 73,267

Post » Sat Feb 20, 2016 12:39 am

I do have one and I use it to set the damage for all the bullets, but I want each bullet to modify that number.
Example if the blue bullet would make the do the BulletFamily.damage+1 but the Red bullet would do Bulletfamily.damage.+2
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Sat Feb 20, 2016 2:01 am

Just specify different values to the damage variable for each object type in your family.
As simple as it seems.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Yahoo [Bot] and 7 guests