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.

Newcomers DBPro Corner / sprite sheet issue

Author
Message
Auric25
11
Years of Service
User Offline
Joined: 28th Aug 2012
Location:
Posted: 29th Aug 2012 00:33
I am having some trouble getting a sprite sheet to animate, all i see is a blue screen. Here are the codes and images used. I am sort of stumped because I thought I had the dimensions correct but it will not show up nor play.



thank you very much for your time.

Ask me anything.

Attachments

Login to view attachments
Lucas Tiridath
AGK Developer
15
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 30th Aug 2012 10:17
I downloaded your image and it appears to be a png file; not a bmp. Try changing the file extension in the code and on the file and see if that works.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Sep 2012 04:12
Hi Lucas not seen you for a while... hope you doing good...

Quote: " Try changing the file extension in the code and on the file "


or convert it first

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Sep 2012 12:09


And your image is not a bmp anyway, it's a PNG.



TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
nonZero
12
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 4th Sep 2012 21:01 Edited at: 4th Sep 2012 21:04
Quote: "rem You put a space there"


...twice


It works with the space but something odd happens. Attached is a beautiful image I drew to test it with. Here is his code (modified for my example):


Image: "Despair" by nonZero (This is an emotive piece reflecting the pain of humanity and the burden of day to day existence on this planet. Comes in many flavours including pink).

Weird huh?

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 5th Sep 2012 03:21
you do realize the "sprite sheet" won't offer the results you desire, even when you DO get it loaded up correctly?

it's 612 px wide, as provided, / 10 = 61.2 so the image itself needs work if you really need to use it (i've tested it and can't be bothered to work on it, but it is out of whack).

you'll find a lot of the ripped "sprite sheets" on the internet are put together poorly and will require some time/effort to adjust, re-arrange, test, etc, before animating properly.

Virtual Nomad @ California, USA . DBPro V7.7
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit

Login to post a reply

Server time is: 2024-04-27 03:32:54
Your offset time is: 2024-04-27 03:32:54