Hi, i'm trying to create shaking effect with the ground with this
but the delay is so much affected the whole gameplay.
how to create shaking effect without delay method?
public void addedToWorld(World world) { center=getX(); } public void act() { setLocation(center+5, getY()); Greenfoot.delay(1); setLocation(center-5, getY()); Greenfoot.delay(1); }