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 / Animating a sprite?

Author
Message
mike5424
17
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 5th Apr 2010 21:35
Attempting to make a animated sprite, All that happens is it shows a blue screen. The image i'm using is 96x128 and has 4 sprites across and 4 down. The four across the top (first row) are the walking up animation.



---
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Apr 2010 23:48
Hi mike5424 ...hava a look to this example.I hope it can help you to understand how it works

cheers.

I'm not a grumpy grandpa
mike5424
17
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 10th Apr 2010 21:18
It didn't work, I compiled that and it was just blue...

---
Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 11th Apr 2010 13:20
try with




Hello
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Apr 2010 13:42
Are you using Dbpro ? or darkbasic clasic, I just download it now to check possible error, and its working ok


cheers.

I'm not a grumpy grandpa
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Apr 2010 23:27 Edited at: 12th Apr 2010 23:36
Quote: "it shows a blue screen"


Use Set Sprite with the parameters 0,1 to get rid of the blue screen.

Quote: "and has 4 sprites across and 4 down"


Then why are you saying it has 24 across and 32 down here:

create animated sprite 1, "Sprites/Wizard.bmp", 24, 32, 1

From the help files:

CREATE ANIMATED SPRITE Sprite Number, Filename, Across, Down, Image Number

Across and down mean the number of images across and down on the sprite sheet and nothing to do with the X and Y size of the sprite.

TDK

Login to post a reply

Server time is: 2026-07-26 14:30:49
Your offset time is: 2026-07-26 14:30:49