Hello im trying to delay a method on a actor so the actor should walk over a route but not to quickly can someone help me with developing a delay that is like 500 milli seconds long but only goes delays the next action this is the code:
public void Go(){
zweiVor(); //this makes him move forward
delay(); //here he should wait for 500 milli seconds
zweiVor();
delay();
zweiVor();
delay();
zweiVor();
turnleft(); //here he should turn left and after that move forward
zweiVor();
}
this is a part of the code in reality its much longer but how do I program now a delay that makes him delay before the next action?