Hi I need help to make something go on forever. You see I want SafeTime to go up constantly while being in contact with my character until it hits 3000(3 seconds) then delete the object that my character is touching. I figured everything elseout except how to make the "SafeTime++;" to go up constantly instead of once. Help?
public void imSafe(){
Actor Pardeep = getOneIntersectingObject(MiniGlade.class);
if(Pardeep!=null){
SafeTime++;
if(SafeTime==3000)
{
getWorld().removeObject(Pardeep);
SafeTime=0;
}
else if ( SafeTime < 3000 )
{
SafeTime = 0;
}
}
}

