Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// setX.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Set this asset's global x position.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#setX
   * @param {Float} value
   * @returns {Float}
   */
  p.setX = function Tangible_setX(value) {
    return (this.position.x = value);
  };
})();