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.

2D All the way! / 2D Help

Author
Message
Lordcorm
19
Years of Service
User Offline
Joined: 24th Sep 2006
Location: Hyde Park, Utah
Posted: 13th Oct 2006 04:57
I have a question how do i use sprite sheets like this http://www.panelmonkey.org/sprite.php?id=45&theme=3 when i save that how do i open that in my game when there is multiple images in the the picture?

People think DarkBASIC is for noobs and isnt professional, but i think its the future of game programming. Do you agree with me? Just reply to this thread saying you do.
DarkBASIC for ever!
Lordcorm
19
Years of Service
User Offline
Joined: 24th Sep 2006
Location: Hyde Park, Utah
Posted: 13th Oct 2006 05:39
Just another question is, can i have anamation sprites and still have collision detection? Also what whould be a good anamation sprite program.
Thanks you guys!

People think DarkBASIC is for noobs and isnt professional, but i think its the future of game programming. Do you agree with me? Just reply to this thread saying you do.
DarkBASIC for ever!
Gamedesign er20
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 14th Oct 2006 01:45
Quote: "when i save that how do i open that in my game when there is multiple images in the the picture?"


Hello Lordcorm,

Before you put the sprites in DarkBASIC, you have to cut them out of the sheet into differnt induvidual sprites. You do this by using Photoshop, Gimp, or other Paint applications. It is basicly cropping the picture so it just shows one of them. If you need more information on that, just feel free to ask.

Quote: "Just another question is, can i have anamation sprites and still have collision detection?"


Yes, it's called SpriteHit() or SpriteCollision() commands. You can
learn more about these commands by reading the manual, or looking in the code section of the Main Menu in the DArkBASIC program.

Quote: "Also what whould be a good anamation sprite program."


All though this might not be the easies thing to do, I usally use no Sprite animation programs, and animate it myself using the Wait Command. There might be a better way, but you'll have to find out about that yourself.

All of this advice has been for DarkBASIC classic, if you however have DarkBASIC pro, you should be able to convert what ever I am saying into DBPro.

Cocacola and Pepsi aren't that differnt. Deal with it.
Lordcorm
19
Years of Service
User Offline
Joined: 24th Sep 2006
Location: Hyde Park, Utah
Posted: 14th Oct 2006 01:49
Thanks a bunch


People think DarkBASIC is for noobs and isnt professional, but i think its the future of game programming. Do you agree with me? Just reply to this thread saying you do.
DarkBASIC for ever!
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 14th Oct 2006 04:52
You can hace all your sprites in 1 image, and the via code get each of the frames, thats how i do it. For animating i use Adobe Image Ready. I create a gif of the desired animation as to guide me wich frames are used, and their timming.

Further on my stuff at...
2D Analyst
AGK Developer
22
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 2nd Nov 2006 16:50
Gif is good, but I can't figure a way to get transparency from it. I usually just create a function to setup the animation.

www.simpoware.com
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Nov 2006 11:55
Ive heard png is the way to go

Lordcorm
19
Years of Service
User Offline
Joined: 24th Sep 2006
Location: Hyde Park, Utah
Posted: 3rd Nov 2006 21:47
you can do animations with png?

People think DarkBASIC is for noobs and isnt professional, but i think its the future of game programming. Do you agree with me? Just reply to this thread saying you do.
DarkBASIC for ever!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Nov 2006 01:04
no a flatfile tileset of pngs apparantly is the cleanest visual choice for sprites when your developing 2d.

basically you flip around the images captured from a plate of uniformed sized and space images.

Login to post a reply

Server time is: 2026-07-05 18:14:07
Your offset time is: 2026-07-05 18:14:07