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

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

Best Java code snippets using com.badlogic.gdx.scenes.scene2d.actions.MoveToAction.setDuration (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: 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: 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: 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

 if(SomeCondition){
  MoveToAction moveCar = new MoveToAction();
  moveCar.setPosition(anX,anY);
  moveCar.setDuration(aDuration);
  myCarActor.addAction(moveCar);
}
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: 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;
}
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: 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: 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: yichen0831/Bomberman_libGdx

moveToAction.setDuration(0.2f);
indicator0.clearActions();
indicator0.addAction(moveToAction);
moveToAction.setDuration(0.2f);
indicator0.clearActions();
indicator0.addAction(moveToAction);
com.badlogic.gdx.scenes.scene2d.actionsMoveToActionsetDuration

Popular methods of MoveToAction

  • setPosition
  • <init>
  • setInterpolation
  • setY

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Kernel (java.awt.image)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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