Moving a scene object

Move an object to a specified position

SceneObjects can be moved around using the moveTo function.
App = function() { this.load = function() { wade.loadImage('/snippets/samples/cc_logo.png'); }; this.init = function() { // create a sprite var sprite = new Sprite('/snippets/samples/cc_logo.png'); // create a scene object with that sprite var logo = new SceneObject(sprite); // add the object to the scene wade.addSceneObject(logo); // move the object to (200, 100), with a speed of 20 units per second logo.moveTo(200, 100, 20); }; };
Your code was executed successfully!