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 / can anyone help???

Author
Message
Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 2nd Jan 2007 00:06 Edited at: 2nd Jan 2007 00:07
hello i just saying if i can use spritesheets like this:



in DBC???

and how???


Meet me on Xbox Live.
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Jan 2007 00:32
If DBC has the Get Image() command, youd use a loop going through each section of the image, grabbing a smaller image and saving it.

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Jan 2007 04:01 Edited at: 2nd Jan 2007 04:02
Yes, it is possible, but it's only possible to to generate images from all the sprites on that sprite sheet if they are evenly spaced out on a grid.

Here is an example how to do it:



Put the image attached to this post in the same place as the source code when you compile.

Note that you don't have to actually have a grid in the sprite sheet, the grid there is just an example of how sprites should be spaced.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version

Attachments

Login to view attachments
Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 2nd Jan 2007 12:52
Thanks RUCCUS and Benjamin for your help i was thinking of a game alittle like sonic?

Just alittle game though.


Meet me on Xbox Live.
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Jan 2007 15:46
Thats fine, but trying to figure out how to cut up a sprite sheet isnt a good first step. You should use primitives for the time being, something as simple as a blue circle is fine, and get the gameplay going first. Once you've got a complete engine, start introducing media like this.

Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 2nd Jan 2007 15:51
thanks i'll check out the code snippet first see what happens and then if it doesn't work i'll go at it again for awhile.

Thanks,
Deathead


Meet me on Xbox Live.
Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 2nd Jan 2007 15:59
well the code did'nt work so i start making pop goes the circles.




Meet me on Xbox Live.
Stig Design Stig Magne
19
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 5th Feb 2007 12:11
Hi can Some one Help Me
i Ned Code help
1:Car Performance (Easy std Performance)
2:Arrow&enter select menu Comand (Menu Select)
PLEEES Help
send Answer&DBC Code to [email protected]
oh by the way i ned this help to my Car Game soLong i Cald it
FunnyCity.

Stig Magne Risnes Berger

Login to post a reply

Server time is: 2025-05-26 05:24:36
Your offset time is: 2025-05-26 05:24:36