2 registered members (Ayumi, 1 invisible),
584
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
baffling phenomenon
#413501
12/14/12 19:01
12/14/12 19:01
|
Joined: Sep 2003
Posts: 733 Whitefish, Montana
JazzDude
OP
User
|
OP
User
Joined: Sep 2003
Posts: 733
Whitefish, Montana
|
I'm using A6.6 When I compile my game from WED all is fine. But when I publish it, the sprites with the action below all fade to alpha 0 immediately after it loads. Poof! Gone!
action act_obj_set
{
ent_obj = me;
while(!player){wait(1);}
my.collision_range = 400;
my.fade_dist = 500; //1000;
my.fade_speed_fac = 0.01;
vec_set(d3d_lodfactor,vector(500,650,800));
my.passable = on;
my.polygon = on;
my.alpha = 100;
vec_set (temp, my.pos);
temp.z -= 2000;
my.z -= c_trace (my.pos, temp, ignore_me + ignore_you + ignore_sprites + ignore_passable) + my.z_adjustment;
}
|
|
|
Re: baffling phenomenon
[Re: JazzDude]
#413502
12/14/12 19:11
12/14/12 19:11
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
The code you're showing here does no fading at all. If you have multiple entities with this action attached ent_obj will always point to the most recently created one. Is this intentional?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: baffling phenomenon
[Re: JazzDude]
#413516
12/14/12 22:12
12/14/12 22:12
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Well, I don't think that the code you're showing here is causing the trouble.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: baffling phenomenon
[Re: JazzDude]
#413524
12/15/12 00:24
12/15/12 00:24
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Have you maybe used one of the statistic variables in the published version and forgot that they are all 0 in the release version? I'm talking about time_level, time_entities etc.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: baffling phenomenon
[Re: JazzDude]
#413588
12/15/12 16:38
12/15/12 16:38
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Is this problem maybe frame rate dependent, i.e. does the development engine run significantly faster or slower than the published one?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|