Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
0
Members

Sprite not showing

A topic by ramose created Jan 16, 2016 Views: 1,267 Replies: 4
Viewing posts 1 to 3

Hi, I have followed first tutorial, to show a sprite. Sprite is showing in editor. But when game run, no sprite at all, just black blank screen.

*Using OSX Yosemite.

It sounds like you might need to load the scene if you haven't already. Creating a script with the code below should fix it, just be sure to replace "Main Scene" with the name of the scene you have your actor in.

Sup.loadScene("Main Scene");

You can also set the startup scene in the settings, which can be found at the bottom of the asset tree. More information on scenes here: Link

Hope this helps!

(+1)

I manage to show the sprite by set camera z-position to higher value than 'main character'.

Is this the right way? Since it's not mentioned in tutorial.

Yep, that should fix it! I had assumed you were having a different issue when I posted, but I'm glad you got it figured out :D

Moderator (1 edit)

The tutorial mentions the coordinates you should use for your sprite actor and camera actor, doesn't it? Do we need to make it clearer somehow?