src code

instance property Component#x

Component#x → Number

The X coordinate of the top-left point of the Component from the top-left of the game screen.

var component = SGF.require("component");
var instance = new component();
instance.update = function() {
    this.x++;
}

This is an example of overwritting the Component#update method, and incrementing the x coordinate every step through the game loop. This will smoothly pan the Component across the game screen at the game's Game#gameSpeed.