Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculate the dimension of an array for a sprite...
#9
Not your code, it was mine.

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.
Reply


Messages In This Thread
Calculate the dimension of an array for a sprite... - by Anonymous - 04-19-2007, 10:48 PM
Calculate the dimension of an array for a sprite... - by wallace - 04-23-2007, 07:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)