Calculate the damage inflicted

There are posts about this.

I would use a structure. Add the ID variable to each enemy as a string, give them a value based on a counter variable. Give the bullet object a structure named IDs

Events

project: (click green [code] then [download zip]

This might need more testing. But it’s a start

I’d prefer to use the linking version. That wouldn’t require IDs. I tried to make it but it didn’t work. If I get it to work. I’ll share it.

1 Like