Hi, I want to make it so when my object eats potatoes the game goes into slow motion for 5 seconds. I have a method for eating the potato by I don't know if there is a way to control the game speed. I looked in the API and didnt see anything but I might have missed it.
What should I add?
public void Eat(){
Actor actor = getOneIntersectingObject(Potato.class);
if(actor != null)
{
// When a potato is caught, remove potato, and make slow motion?
getWorld().removeObject(actor);
}
