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
Need help with Basic4GL, trouble loading sprites
Started by Lalaporo, Jan 03 2011 08:53 PM
1 reply to this topic
#1
Posted 03 January 2011 - 08:53 PM
#2
Posted 03 January 2011 - 10:28 PM
You may want to ask this on the Basic4GL forums; you'll probably get a more informed answer there.
reedbeta.com - developer blog, OpenGL demos, and other projects
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











