hitpoints = hitpoints - 1; // that will take 1 hitpoint away from him every time you jump on him.
if(hitpoints < 0) // if he's got no energy left
{ // robotnik dies;}
==Kalladdolf== wrote:Colission/Any side/
- Code: Select all
hitpoints = hitpoints - 1; // that will take 1 hitpoint away from him every time you jump on him.
if(hitpoints < 0) // if he's got no energy left
{ // robotnik dies;}
Users browsing this forum: No registered users and 1 guest