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.

Dark GDK / dbCreateAnimatedSprite Animated Sprite

Author
Message
Gyoergy
18
Years of Service
User Offline
Joined: 29th Nov 2005
Location: Syntax E33o3
Posted: 8th Jul 2006 12:02
Hi,

need some help. dbCreateAnimatedSprite is not working. I tried PNGs, Gifs, BMPs. Nothing is working. Player3.png has 76x76 pixels.
Each frame is 19 pixels.

dbCreateAnimatedSprite ( 1000, "player3.png", 4, 4, , 1001 );

while ( LoopSDK ( ) )
{
...
dbShowSprite( 1000 );

dbPlaySprite( 1000, 4, 10, 1000 );
}
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Jul 2006 19:03
Not a solution provided here, but when the GDK is updated, I would imagine that alot of these problems will disappear.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
Gyoergy
18
Years of Service
User Offline
Joined: 29th Nov 2005
Location: Syntax E33o3
Posted: 9th Jul 2006 12:31
Hi, thanks. Placing the Sprite with dbSprite works:

dbCreateAnimatedSprite ( 1000, "C:\\games\\THX1138\\dev\\DBTestSDK\\Release\\player3.png", 4, 4, 1001 );

x=100;y=100;
dbSprite( 1000, x, y, 1001 );

unfortunately the SDK documentation is very sparse... do you think the GDK documentation will be any better...?

regards,
Gyoergy

Login to post a reply

Server time is: 2024-11-19 06:47:38
Your offset time is: 2024-11-19 06:47:38