Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Call objects from scenes


Cary Crusiau
 Share

Recommended Posts

Do you mean like this:

Player = game.Class.extend({    init: function() {        this.sprite = new game.Sprite('player.png');    }});SceneGame = game.Scene.extend({    init: function() {        this.player = new Player();        this.player.sprite.position.set(200, 200);    }});
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...