Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / RTE 501- Image # Illegal...

Author
Message
Oboro
14
Years of Service
User Offline
Joined: 27th Jul 2010
Location: Gilmer, TX
Posted: 9th Aug 2010 16:08

I keep getting the Image number Illegal Run time error in reference to the sprites I'm trying to load, can anyone tell me where I'm going wrong with this code? sorry it is probably a mess.

Space for rent.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Aug 2010 18:30 Edited at: 9th Aug 2010 18:33
Try LOAD IMAGE instead of LOAD BITMAP. That may fix it.


EDIT: Your choice of characters reminds me of the arena in Kingdom of Loathing

Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 9th Aug 2010 21:28
yeah i believe that either using Load Image "media\Yellow_6.png", 16 would probably help or using GET IMAGE would benefit you, i THINK you have to get the sprite from an IMAGE rather than a bitmap.

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD
Oboro
14
Years of Service
User Offline
Joined: 27th Jul 2010
Location: Gilmer, TX
Posted: 9th Aug 2010 22:09 Edited at: 9th Aug 2010 22:41
I will try thank you so much for such prompt responses,
@ Rich Dersheimer> Kingdom of Loathing? I've never played. I shall look it up!


Edit: Holy Poo-zers, it's always the small crap isn't it, I had an angst session on this combined with semi-pro active tossing about of books and looking up info, I didn't realize something small like that lol! Can you use the image command for .bmp's or are they not enter-changeable at all?

P.S. KoL is Hilarious and full of win. I want to take out hoards of ninja snowmen!

Space for rent.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Aug 2010 22:51
Think of bitmaps as things you can draw to, and images as things you can draw with (it's not quite that black and white any more, but that should sort you out).

Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 9th Aug 2010 23:09 Edited at: 9th Aug 2010 23:10
you can use

instead of load bitmap

OR



I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

Login to post a reply

Server time is: 2024-11-16 15:48:41
Your offset time is: 2024-11-16 15:48:41