games controls are:
up-jump
down-duck
left & right to move
space-shoot
'how can i get he enemies to die after a certain amount of shots?
health-=1;
if(health<=0){ //if damage can be more than one, then health can go from 1 to negative numbers,
//so we use <= 0 instead of ==0.
DestroyActor("Event Actor");
}
DST wrote:
- Code: Select all
health-=1;
if(health<=0){ //if damage can be more than one, then health can go from 1 to negative numbers,
//so we use <= 0 instead of ==0.
DestroyActor("Event Actor");
}
if(health<=0){ //if damage can be more than one, then health can go from 1 to negative numbers,
//so we use <= 0 instead of ==0.
DestroyActor("Event Actor");
}
health-=1;
Users browsing this forum: Google [Bot] and 1 guest