ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: gra on March 08, 2013, 06:47:36 PM

Title: [SOLVED]sprite add , draw sprite white
Post by: gra 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
Title: Re: sprite add , draw sprite white
Post by: TheExDeus on March 08, 2013, 08:01:51 PM
Right now only .bmp can be loaded. No one is able to write the .png loader.
Title: Re: sprite add , draw sprite white
Post by: gra on March 08, 2013, 09:05:08 PM
thank
for response
Title: Re: sprite add , draw sprite white
Post by: gra 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
Title: Re: sprite add , draw sprite white
Post by: forthevin 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.
Title: Re: sprite add , draw sprite white
Post by: gra 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)