Codota Logo
MoveToAction
Code IndexAdd Codota to your IDE (free)

How to use
MoveToAction
in
com.badlogic.gdx.scenes.scene2d.actions

Best Java code snippets using com.badlogic.gdx.scenes.scene2d.actions.MoveToAction (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: libgdx/libgdx

static public MoveToAction moveToAligned (float x, float y, int alignment, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y, alignment);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
origin: stackoverflow.com

 if(SomeCondition){
  MoveToAction moveCar = new MoveToAction();
  moveCar.setPosition(anX,anY);
  moveCar.setDuration(aDuration);
  myCarActor.addAction(moveCar);
}
origin: stackoverflow.com

Table actionTable = new Table();
 //position the table outside the screen
 actionTable.setPosition(stage.getWidth(), 0); //Position on the right of the stage
 MoveToAction moveAction = new MoveToAction();
 moveAction.setPosition(0, 0); //Move from right side of stage inside the stage
 moveAction.setDuration(.5f); //Duration of this action
 moveAction.setInterpolation(Interpolation.fade); //Fade the movement in and out, many interpolations are supplied by the framework.
 actionTable.addAction(moveAction); //Execute Action.
origin: stackoverflow.com

 MoveToAction action = new MoveToAction();
action.setY(10); // y-position to move to
action.setDuration(duration); // time (in seconds) to move there

actor.addAction(action);
origin: stackoverflow.com

 MoveToAction moveAction = new MoveToAction();
moveAction.setPosition(300f, 0f);
moveAction.setDuration(10f);
myActor.addAction(moveAction);
origin: libgdx/libgdx

static public MoveToAction moveToAligned (float x, float y, int alignment, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y, alignment);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
origin: moribitotech/MTX

public void actionMoveTo(float x, float y, float duration) {
  // Move to a specific position by time
  MoveToAction action = new MoveToAction();
  action.setPosition(x, y);
  if (duration > 0) {
    action.setDuration(duration);
  }
  addAction(action);
}
origin: libgdx/libgdx

static public MoveToAction moveTo (float x, float y, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
origin: stackoverflow.com

Button botonTest = new Button(new Skin(Gdx.files.internal("skin/uiskin.json")));
 botonTest.setPosition(50f, 50f);
 MoveToAction move = new MoveToAction();
 move.setPosition(-10f, 50f);
 move.setDuration(5f);
 botonTest.addAction(move);
origin: libgdx/libgdx

static public MoveToAction moveTo (float x, float y, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
origin: yichen0831/Bomberman_libGdx

MoveToAction moveToAction = new MoveToAction();
moveToAction.setPosition(indicatorX, newIndicatorY);
moveToAction.setDuration(0.2f);
indicator0.clearActions();
indicator0.addAction(moveToAction);
MoveToAction moveToAction = new MoveToAction();
moveToAction.setPosition(indicatorX, newIndicatorY);
moveToAction.setDuration(0.2f);
indicator0.clearActions();
indicator0.addAction(moveToAction);
origin: com.badlogicgames.gdx/gdx

static public MoveToAction moveToAligned (float x, float y, int alignment, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y, alignment);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
origin: com.badlogicgames.gdx/gdx

static public MoveToAction moveTo (float x, float y, float duration, Interpolation interpolation) {
  MoveToAction action = action(MoveToAction.class);
  action.setPosition(x, y);
  action.setDuration(duration);
  action.setInterpolation(interpolation);
  return action;
}
com.badlogic.gdx.scenes.scene2d.actionsMoveToAction

Javadoc

Moves an actor from its current position to a specific position.

Most used methods

  • setDuration
  • setPosition
  • <init>
  • setInterpolation
  • setY

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now