|
|
|
1 registered members (AndrewAMD),
7,926
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 2d sprite creation in c-lite
[Re: djamidin]
#189067
03/17/08 13:35
03/17/08 13:35
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You can create sprites i.e. 2D entities or billboards exactly the same way as you create 3D entities with ent_create. Just pass a bitmap instead of a model file to ent_create. I've never heard of a function named ent_decal.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: 2d sprite creation in c-lite
[Re: Uhrwerk]
#189068
03/17/08 14:11
03/17/08 14:11
|
Joined: Sep 2006
Posts: 9 netherlands
djamidin
OP
Newbie
|
OP
Newbie
Joined: Sep 2006
Posts: 9
netherlands
|
hey while posting this question i discovered pretty mucht the same thing.
and ent_decal is a function for particles which i overlooked.
so far i tried using ent_create with a tga file that did not seem to work but a pcx file it did seem to work.
i am going to try some file extentions to see if some take alpha layering.
wish me luck.
and thx uhrwerk!
still learning, do not flame me
|
|
|
Re: 2d sprite creation in c-lite
[Re: djamidin]
#189069
03/17/08 14:43
03/17/08 14:43
|
Joined: Sep 2006
Posts: 9 netherlands
djamidin
OP
Newbie
|
OP
Newbie
Joined: Sep 2006
Posts: 9
netherlands
|
ok tested :
256 * 256 .pgn .tga .bmp .dds .pcx with and without alpha.
All gave error bad file format on debug.
Only file that seemed to work was palette.pcx which is a 1 kb bleu value only picture.
Am i overlooking something here or what?
thx in advance.
still learning, do not flame me
|
|
|
Re: 2d sprite creation in c-lite
[Re: djamidin]
#189070
03/17/08 15:18
03/17/08 15:18
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Check your email account.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|
|
|
|