Need help with Basic4GL, trouble loading sprites

Lalaporo 101 Jan 03, 2011 at 20:53

Ok o im useing BASIC4gl to program a simple game, and im useing this script right here to attempt to load my sprite into the game,

characterSpr = LoadTexture(“Data\character.png”)
character = NewSprite(characterSpr)
SprSetSize(32, 32)

now i have all the variables set as dim correctly and it doesnt have any errors when it first starts to run the script, but when the program runs, the sprite shows up only as a little white square, and it will do this for any image that i try to load into the program, i dont know what i am doing wrong, or if it could be a error in the actual compiler itself. If anyone has any idea on how to fix this i would really appriciate your help. Again it does this with ANY image i try to load into the program. TY

1 Reply

Please log in or register to post a reply.

Reedbeta 167 Jan 03, 2011 at 22:28

You may want to ask this on the Basic4GL forums; you’ll probably get a more informed answer there.