[HELP]Weakness and resistance system

Get help using Construct 2

Post » Sun Dec 18, 2011 3:09 pm

Hey,how are you guys?
i'm making a tower defence game right now and i wante to put different atributes in each type of attack,but i don't know how to do that since there's no "Test if the object has "fire" variable" event.
so there's any way of doing it?thanks.
B
16
S
5
G
1
Posts: 43
Reputation: 1,787

Post » Sun Dec 18, 2011 3:20 pm

Hello
what do you mean?
you mean damage?
i will help you
make a private health variable with another element variable
for example (fire element) ,
------------if bullet touch FireEnemy
--------------------if EnemyElement(variable) = 1 ( water )
---------------------set damage to 100*2
--------------------if EnemyElement(variable) = 3 ( leaf )
---------------------set damage to 100/2

B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon Dec 19, 2011 1:03 am

Thanks that's useful!
B
16
S
5
G
1
Posts: 43
Reputation: 1,787


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests