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 / Need "Get Image" Help!!!

Author
Message
Deidara Akatsuki
17
Years of Service
User Offline
Joined: 31st Jan 2009
Location:
Posted: 1st Feb 2009 02:50
i'm working with a sprite sheet that's 1054x4779, but i cant figure out how to get the images to make a sprite. I type in the right coordinates, but it gets an image a lot higher on the sheet, and is twice as big. Any Tips?
RYD
18
Years of Service
User Offline
Joined: 29th Apr 2008
Location: realspace
Posted: 1st Feb 2009 05:18
scale?

MY SUBCONSCIENT IS AS POWERFULL AS EINSTEINS INTUITION
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 1st Feb 2009 08:06 Edited at: 1st Feb 2009 08:07
Forgive me if I understood you wrong.

There are many ways to cut out individual images from a large sheet. The simplest method that comes to mind is to paste to the screen then use the get image statement.

If your image size is 1054x4779 then it's best to create a bitmap that will fit that.

These command statements are probly what you'll need, look up the help section:

Create Bitmap
Copy Bitmap
Set Current Bitmap
Get Image
Sprite

See what you can do, if you need further help then post the codes you are having trouble with.
Deidara Akatsuki
17
Years of Service
User Offline
Joined: 31st Jan 2009
Location:
Posted: 7th Mar 2009 02:52
Thank you so much for all your help! I did get it to work.
Now for the hard part... XP

Login to post a reply

Server time is: 2026-07-11 17:41:24
Your offset time is: 2026-07-11 17:41:24