is that even possible to do?
/** field */ private int mRot = 0; // movement rotation /** act method */ public void act() { int tRot = getRotation(); setRotation(mRot); // all normal act method (movement) stuff here mRot = getRotation(); setRotation(tRot+10); tumbling }
protected void addedToWorld(World world) { Space space = (Space)getWorld(); Spaceship spaceship = space.getSpaceship(); if (spaceship.getWorld() == null) return; turnTowards(spaceship.getX(), spaceship.getY()); } public void movement() { int tRot = getRotation(); //tumble rotation setRotation(mRot); move(6); mRot = getRotation(); setRotation(tRot+10); //tumbling }