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.

DarkBASIC Professional Discussion / Runtime error 2002 - could not load animation at line 88

Author
Message
Rikukarasuma
15
Years of Service
User Offline
Joined: 15th May 2011
Location: Ireland
Posted: 22nd May 2011 23:14
Hey Im still grasping darkbasic and have been strugling in trying to get animations to work and I thought I had it but unfortunately an error poped up.
I was wondering if anyone could help me please.
The error is Runtime error 2002 - could not load animation at line 88.
(p.s Im aware that this code is not perfect like I said im still learning)


Yello http://www.youtube.com/user/Rikukarasuma?feature=mhee
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd May 2011 07:49 Edited at: 23rd May 2011 07:50
Are you sure those .gif files are in the "content\textures" directory? Generally when it says it can't load something it's because the filename is wrong or it's not in the spot the program is looking. It's better to not change the current directory and add the directory to the filename when you want to load instead.



And how did you get Darkbasic to get past your GLOBALS with just numbers? A variable needs at least one letter to work right.

Darkbasic really doesn't do well with .gif anymore. And .jpgs aren't good to use because they change the colors around and won't let you use transparencies. The best image format is .png because it allows transparencies and retains the colors exactly the way they were saved. And always use ,1 as a texture flag for any LOAD IMAGE command so it doesn't blur the image.

What you really should do is take those .gif files and convert them to .png and use CREATE ANIMATED SPRITE to load the animation.

Attached is the image this uses:


Login to post a reply

Server time is: 2026-07-10 23:13:14
Your offset time is: 2026-07-10 23:13:14