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 / animated sprites not working - am I incompetent?

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th Nov 2010 23:00
Hi, this is all of the code so far :



Media attached. Place it in a folder called "animations".

Why do I only get one little pink dot on screen? Am I using the create animated sprite command incorrectly or something? This is what happens if you start with 3D first, and THEN go on to learn 2D...

TheComet

WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Nov 2010 02:10
Hi, TheComet

It seems your have the create animated sprite wrong. Image number should be before across and down. I have changed the sprite# and frame#'s to constants. hope this helps.



Brian

Have netbook will travel.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Nov 2010 02:12
Oh, ya

And very nicely done!

Brian

Have netbook will travel.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Nov 2010 04:26 Edited at: 19th Nov 2010 04:43
Quote: "It seems your have the create animated sprite wrong. Image number should be before across and down"


I am sorry, It would appear you have this correct. The problem is across and down. DBPro help is misleading on this. Across should read, the number to divide the image horizontally and down, divide vertically. The image is sliced in this manner to get the frames.

play sprite:
The help should state that the Start frame should not be less then 1.

Brian

Have netbook will travel.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Nov 2010 15:13 Edited at: 21st Nov 2010 15:13
Ah, of course... I must not have been thinking straight... Thanks!

Quote: "Oh, ya

And very nicely done!"


Thanks a lot!

TheComet

Login to post a reply

Server time is: 2026-07-21 12:51:13
Your offset time is: 2026-07-21 12:51:13