I tried different options, but I couldn't find a solution. Any help ?
Develop games in your browser. Powerful, performant & highly capable.
Have you tried selecting File -> New -> and choosing any of the shooter templates? Or searching the tutorials section?
.
Add "health" instance variable, on collision with enemy subtract from health.