Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 6,074 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
At when the engine will load image for ent_create( )? #216000
07/14/08 14:43
07/14/08 14:43
Joined: Jun 2008
Posts: 91
C
Coisox Offline OP
Junior Member
Coisox  Offline OP
Junior Member
C

Joined: Jun 2008
Posts: 91
Lets say when we press the key_a, we call ent_create ("picture.png", nullvector, NULL);

My question, when did the engine "really" start loading the image?

a) at the time when we press the key_a
b) when the engine start loading, before the level_load();

Re: At when the engine will load image for ent_create( )? [Re: Coisox] #216002
07/14/08 15:10
07/14/08 15:10
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
a


3333333333
Re: At when the engine will load image for ent_create( )? [Re: Quad] #216013
07/14/08 16:09
07/14/08 16:09
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
anyway if you use level_load all enties are purged so it isnt loaded then any more


"empty"
Re: At when the engine will load image for ent_create( )? [Re: flits] #216088
07/15/08 01:54
07/15/08 01:54
Joined: Jun 2008
Posts: 91
C
Coisox Offline OP
Junior Member
Coisox  Offline OP
Junior Member
C

Joined: Jun 2008
Posts: 91
flits,
you mean, if I'm using the level_load, the answer is b? But in big project, it seems strange if the engine load everything into the memory before the game start. It is a good feature for small project but not for a big project.

Quadraxas,
I call a sequence of big textures (1024x1024) on key_a as my effects. But it seems so fast and smooth if like you said, load on the current event. My code is something like this:
Code:
ENTITY* aaa[3];

function keyboard()
{
	if (key_a)
	{
		aaa[0] = ent_create("bigTexture1.png", bla...bla...);
		wait(-0.2); ent_remove(aaa[0]); aaa[0] = NULL;

		aaa[1] = ent_create("bigTexture2.png", bla...bla...);
		wait(-0.2); ent_remove(aaa[1]); aaa[1] = NULL;

		aaa[2] = ent_create("bigTexture3.png", bla...bla...);
		wait(-0.2); ent_remove(aaa[2]); aaa[2] = NULL;
	}
}

function main()
{
	level_load(bla...bla...);
}



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