04-23-2007, 07:51 PM
Not your code, it was mine.
Image create returns a POINTER to the array, that was my mistake.
Looking at your code I do see one thing though, I'm pretty sure that if you declare your sprite as a pointer (like you need to be now) you don't need to VARPTR in your BLOAD.
Also, this doesn't really matter, but I would recommend using ENUMs rather than CONSTs for things like true and false, and the directions.
Code:
dim sprite as integer ptr
sprite = imagecreate(width, height)
Image create returns a POINTER to the array, that was my mistake.
Looking at your code I do see one thing though, I'm pretty sure that if you declare your sprite as a pointer (like you need to be now) you don't need to VARPTR in your BLOAD.
Also, this doesn't really matter, but I would recommend using ENUMs rather than CONSTs for things like true and false, and the directions.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.