I made an enemy sprite, and instead of destroying it with one shoot i want it to be destroyed after like 20 hits, how do i do that?
Use an instance variable to keep track of its life. Each time the player shoots it, subtract 1 from the instance variable. When the variable reaches 0 destroy the sprite.
im really new to constract, i apologize for my ignorance but,, i know how to make the instnce variable, but how do i keep track of it? in the event sheet i assume?
Develop games in your browser. Powerful, performant & highly capable.
Hi,
right, in the event-sheet. In c2 there was an precise template to show the use of instance variables. Don't know about c3. Anyway, here`s a screenshot.