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 Discussion / Animation Problem.

Author
Message
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Jul 2008 05:01 Edited at: 29th Jul 2008 05:27
It's really gettin' ANNOYING!!!! STAY OFF CAPS LOCK!!!!!

Here is a function i call in my game to load stickfigures....



and then when i call it DB says "append frame must be greater than total object frame count"...WTF?

I'm using 1.13.....

Edit)
Okay.
I started hackin' away at my code and found the problem.
It was -

---------
append object "grab idle.x",id,Grab(id,1)+1
GrabIdle(id,0)=Grab(id,1)+1
GrabIdle(id,1)=total object frames(id)
---------
Why would Db single out this set of the aniload function?


Please Help!

EDIT3:

Wait! i was getting along fine. and then it did it again! I didn't touch the load function! WTF????

EDIT4:

Umm...Replies?
And I kept testing it. It just does it Randomly, off and on. DB.....Is...Cruel....Please....Help....

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Jul 2008 16:42
*Bump*

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 30th Jul 2008 06:16
I put a series of breaks in your function so you can check the values of your variables that are holding the frame counts. It should give you an idea of where something is going wrong in terms of the frame value.



Also instead of line that read like


try creating another variable out of the array + 1 . The parser that reads the append object command may be interpretting the + operator as something strange:



Enjoy your day.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Jul 2008 17:18
Bumping a thread the same day it was created are we ?(hehe)

I don't see any errors with what you have done. My only suggestion would be to enclose the formulas in brackets. It seems to me that DBC has failed to properly calculate formulas for me in the past and this forces it to do it.



Hope this helps,

LB

Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 31st Jul 2008 16:28 Edited at: 31st Jul 2008 16:30
It does,Thanks,LB and Latch. Now Db doesn't do it as often.....

Quote: "Bumping a thread the same day it was created are we ?(hehe)

"


Yeah sorry i was just....mad.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size

Login to post a reply

Server time is: 2025-06-07 06:58:49
Your offset time is: 2025-06-07 06:58:49