Sprite Null

  • hgokturk
    Likes 0

    Problem Description

    Hello. First of all thank you very much for your great tutuorials. I stuck with an error while following an recreating the code of one of your tutorials. Seems that i can not create a sprite. 

    auto backgroundSprite = Sprite::create("Splash Screen.png");

    When i debug it, backgroundSprite is null. 

    I use Visual Studio & cocos console to run on android device. My system is Windows 8.1. The apk is built successfully but crashes right after launch. I build the project in proj.win32 directory with Visual Studio, then compile for android via cocos console.

    Any idea why sprite is null?

  • barabasandras1
    Likes 0

    Where do you store Splash Screen.png? It has to be in project/Resources most likely, by default.


Login to reply