java - LibGDX: Sequence Not Working -


i cannot use sequence @ all, these gives me error.

this.addaction(sequence()); this.addaction(sequence(setx(gety()))); 

no matter sequence won't work, despite these being imported. addaction not work either, nor addaction & actions.sequence.. nothing far goes.

import com.badlogic.gdx.scenes.scene2d.actions.actions; import com.badlogic.gdx.scenes.scene2d.actions.addaction; 

edit: needed make class actor.

this worked fine me.

do in constructor of screen want action:

image.addaction(sequence(fadeout(3), run(new runnable() {         @override         public void run() {             game.setscreen(new menuscreen(game));         } })); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -