Need help with Basic4GL, trouble loading sprites

72423d7a32a99ae33a2788b93ad941fe
0
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)
SprSetPos(320,240)
SprSetSize(32, 32)
SprSetZOrder(1)

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.

A8433b04cb41dd57113740b779f61acb
0
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.