AdamRyanGameDev Posted February 27, 2018 Share Posted February 27, 2018 Just finding my feet directly in Phaser3 (no Phaser2 exp) [and indeed this forum! Hello there!] The sprites created with this.load.image('sky', 'assets/skies/space3.png'); does the name need to be unique to 'game' or to the 'scene' or not at all? (which i imagine causes problems or is there also a 'spriteID' system too?) Link to comment Share on other sites More sharing options...
rich Posted February 27, 2018 Share Posted February 27, 2018 What you're doing there is loading an image into the Texture Manager, so yes the key given there needs to be unique across the whole game. To create a sprite you use: // this.add.sprite(x, y, key) = this.add.sprite(300, 200, 'sky'); Link to comment Share on other sites More sharing options...
AdamRyanGameDev Posted February 28, 2018 Author Share Posted February 28, 2018 Ah OK (sorry for lazy wording)! Cool, thanks! Working late there Mr Rich! Read earlier that you-ve been working very hard in recent weeks! Great work from what I have seen so far, dont forget to some sleep occasionaly! Link to comment Share on other sites More sharing options...
Recommended Posts