collide with "any enemy" cause 20 "global damage" (grouping)
Posted: Mon Mar 17, 2008 2:07 am
i have a situation that i have been avoiding for 2 months, causing "global damage" instead of "individual damage"
this is how my game is CURRENTLY set up
// when shock bolt colides with enemy1... enemy1's health goes down 20
// when shock bolt colides with enemy2... enemy2's health goes down 20
// when shock bolt colides with enemy3... enemy3's health goes down 20.....
//.... when shock bolt colides with enemy125... enemy125's health goes down 20
you can see my point and how inefficiant this is, and how it will take much time in the long run
what i would like to know how to do is this
// when shock bolt collides with "any enemy" cause 20 "damage" to that enemy
so i need to know how would you create a "group" called "enemy group" and "global damage" so when ANY enemy gets hit by the shock bolt, his health goes down by 20
is this possible?
i appreciate any help [list=][/list]
this is how my game is CURRENTLY set up
// when shock bolt colides with enemy1... enemy1's health goes down 20
// when shock bolt colides with enemy2... enemy2's health goes down 20
// when shock bolt colides with enemy3... enemy3's health goes down 20.....
//.... when shock bolt colides with enemy125... enemy125's health goes down 20
you can see my point and how inefficiant this is, and how it will take much time in the long run
what i would like to know how to do is this
// when shock bolt collides with "any enemy" cause 20 "damage" to that enemy
so i need to know how would you create a "group" called "enemy group" and "global damage" so when ANY enemy gets hit by the shock bolt, his health goes down by 20
is this possible?
i appreciate any help [list=][/list]