In above scenarion Animator class, Actor pikachu=new Actor (\"pickachu.png\", 100, 50); object reference variable is pikachu. Then it can used to call all the methods which are inside the Actor class I wrote the \"turnto\" method by helping of \"Movto\" method. Here is the example of Animator class public class Animator { public Animator() { } public static void main(String[] args) { Actor actor = new Actor(); actor.turnto(10,10000); } } I used to pass two parameters which are degree of rotation and sleep time period This Is Actor class after adding turnto method in addition to moveto method. In Here I Wrote only the turnto method code only package com.app.test; public class Actor { public Actor() { actor = new Actor(); } private Actor actor; private int x, y, startx, starty; private int rotate_Degree; private long starttime; private long duration; private boolean interpolation; private float currentScale = 1; private float destScale = 1; private float startScale = 1; private boolean interpolationScale; public Actor(String filename,int rotate_Degree){ x=rotate_Degree; actor = EZ.addImage(filename,rotate_Degree); actor.translateTo(x,y);; interpolation = false; interpolationScale = false; } public void turnto(int deg, long dur){ rotate_Degree = deg; duration = dur*1000; starttime = System.currentTimeMillis(); System.out.println(starttime); startx=x; interpolation = true; interpolationScale = false; } public void setScale(float s, float dur){ destScale = s; starttime = System.currentTimeMillis(); startScale = currentScale; interpolationScale = true; } public boolean moving() { return interpolation; } public boolean scaling() { return interpolationScale; } public void go(){ if (interpolation == true) { float normTime = (float) (System.currentTimeMillis() - starttime)/ (float) duration; x = (int) (startx + ((float) (rotate_Degree - startx) * normTime)); if ((System.currentTimeMillis() - starttime) >= duration) { interpolation = false; x = rotate_Degree; } // Dont forget to move the image itself. pikachu.translateTo(x,y); } if (interpolationScale == true){ float normTime = (float) (System.currentTimeMillis() - starttime)/ (float) duration; currentScale = (startScale + ((float) (destScale - startScale) * normTime)); if ((System.currentTimeMillis() - starttime) >= duration) { interpolationScale = false; currentScale = destScale; } actor.scaleTo(currentScale); } } } Solution In above scenarion Animator class, Actor pikachu=new Actor (\"pickachu.png\", 100, 50); object reference variable is pikachu. Then it can used to call all the methods which are inside the Actor class I wrote the \"turnto\" method by helping of \"Movto\" method. Here is the example of Animator class public class Animator { public Animator() { } public static void main(String[] args) { Actor actor = new Actor(); actor.turnto(10,10000); } } I used to pass two parameters which are degree of rotation and sleep time period This Is Actor class after adding turnto method in addition to mo.