Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2d sprite creation in c-lite #189066
03/17/08 13:17
03/17/08 13:17
Joined: Sep 2006
Posts: 9
netherlands
D
djamidin Offline OP
Newbie
djamidin  Offline OP
Newbie
D

Joined: Sep 2006
Posts: 9
netherlands
Hello forum guys.

I was wondering how in c-lite a 2d entity can be created without using a 2d model.

could this be done.

and is using the ent_decal the way to do it.

thx in advance,

Djamidin

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 Offline
Expert
Uhrwerk  Offline
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
D
djamidin Offline OP
Newbie
djamidin  Offline OP
Newbie
D

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
D
djamidin Offline OP
Newbie
djamidin  Offline OP
Newbie
D

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 Offline
Expert
Uhrwerk  Offline
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...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1