|
|
Ent_Preload
#155091
09/18/07 11:42
09/18/07 11:42
|
Joined: Jul 2006
Posts: 503 Australia
adoado
OP

User
|
OP

User
Joined: Jul 2006
Posts: 503
Australia
|
When I create an entity (a sprite using ent_create), there is a slight glitch. I know this can be solved by using ent_preload, but I am not sure how to use it? you = Ent_Create("pic.tga", vector(0,0,0), null); Ent_preload(you) ?? This does not seem to make much sense  Thanks, Adoado.
|
|
|
Re: Ent_Preload
[Re: adoado]
#155092
09/18/07 13:13
09/18/07 13:13
|
Joined: Mar 2006
Posts: 752 Portugal
demiGod
User
|
User
Joined: Mar 2006
Posts: 752
Portugal
|
Humm, From the manual: Quote:
Video memory is automatically preallocated for entities placed in the current level, but not for entities that are created during gameplay through ent_create...
As far i can understand you cant use it with ent_create.
Probably, you can attach an action to each entity placed in the level assigning a pointer to it. Then in main function and before level load you may use ent_preload to preallocatte video memory...
|
|
|
Re: Ent_Preload
[Re: tindust]
#155098
09/20/07 05:36
09/20/07 05:36
|
Joined: Jul 2006
Posts: 503 Australia
adoado
OP

User
|
OP

User
Joined: Jul 2006
Posts: 503
Australia
|
Yeah thanks  Yes, I am trying to do a custom LoD - it is not related to the 3dgs LoD system. I guess I will just try a few different things, and post back  Thanks! Adoado.
|
|
|
|