Pages: 1
Author Topic: [SOLVED]sprite add , draw sprite white  (27,643 Views)
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Posted on: March 08, 2013, 06:47:36 PM
i'm on linux, ok i write in one object
CREATE
Quoteuno=sprite_add('/sprite_test/0_0007.png',1,0,1,1,1,150,150)
DRAW
Quotedraw_sprite_part_ext(uno,1,0,0,300,300,x,y,0.4,0.4,c_white,1)
the image is display white , why?
i have draw the full path in other time but not go, i have wrong or is the function,
it's most probaly the first
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #1 Posted on: March 08, 2013, 08:01:51 PM
Right now only .bmp can be loaded. No one is able to write the .png loader.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #2 Posted on: March 08, 2013, 09:05:08 PM
thank
for response
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #3 Posted on: March 08, 2013, 09:46:58 PM
 :o i try first with a bmp of 24mb and after a bitmap 100x400 , but the same issue
Offline (Unknown gender) forthevin

Contributor
Joined: Jun 2012
Posts: 167
View profile
Reply #4 Posted on: March 10, 2013, 06:28:01 PM
I pushed a commit earlier that should fix the issue with .bmp loading. gra, did it fix the problem?

In regards to loading .png, couldn't we use an existing image library to handle .pngs? That way, we ought to also be able to load other image formats easily. And in order to avoid making binaries larger than necessary, we could provide it as a non-default extension.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #5 Posted on: March 11, 2013, 10:08:36 AM
QuoteI pushed a commit earlier that should fix the issue with .bmp loading. gra, did it fix the problem?
thanks i try, very good
QuoteThat way, we ought to also be able to load other image formats easily.
yes, if is possible, it's very important, the bitmap is very expensive in megabites, another problem is that only png have trasparency, i try the metod to set background image trasparency, anyway firss i download the new enigma  ;D
thanks for fix yeh
EDIT
i try, the program load external bitmap, the png or jpeg format is requested
(for isometric games that change part of player,an idea after snake  ;D)
Pages: 1