|
|
Enity.u / entity.v
#133022
06/01/07 12:11
06/01/07 12:11
|
Joined: Jul 2006
Posts: 150 Deutschland/Germany, nahe Hamb...
dennis
OP
Member
|
OP
Member
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
|
I want to create a conveyor and i am using the "entity.u" property. That does not work! In the manual: The pixel offsets of map entity textures, in horizontal and vertical direction. By changing these offsets in real time, effects like streaming water can be achieved. Note: this parameter is not used anymore in newer engine versions, but can be set as a workaround for the DirectX mesh animation bug (see bugs). Is it right that i cannot use it anymore....? (I have got 6.60 extra) I need a solution for this problem soon... Original thread: http://www.coniserver.net/ubbthreads/sho...2ec4d13550e97ee
|
|
|
Re: Enity.u / entity.v
[Re: jcl]
#133024
06/01/07 19:34
06/01/07 19:34
|
Joined: Jul 2006
Posts: 150 Deutschland/Germany, nahe Hamb...
dennis
OP
Member
|
OP
Member
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
|
Oh! Thanks! The fx_uvspeed() function is working. But there's a problem: I wrote this code... "My.Skill1 = 1;"WROKS FINE! but when I wrote this code (if the speed of the computer varies).... "My.Skill1 = 10*Time;"THE TEXTURE OF THE CONVEYOR IS SHIVERING! Is there a way to avoid this? (I hope I have read all important notes this time  )
|
|
|
Re: Enity.u / entity.v
[Re: dennis]
#133025
06/01/07 19:55
06/01/07 19:55
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Of course there is. You need to increase or decrease the value of skill1 over the time. Therefore it is Code:
my.skill1 += time_step * 10;
or Code:
my.skill1 -= time_step * 10;
Don't use time. This variable is deprecated. Use time_step or time_frame instead.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Enity.u / entity.v
[Re: dennis]
#133027
06/01/07 21:48
06/01/07 21:48
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You were already increasing in the event. just replace Code:
mtl.matrix31 = floatd(my.skill1*total_ticks,256); mtl.matrix32 = floatd(my.skill2*total_ticks,256);
with Code:
mtl.matrix31 = floatd(my.skill1,256); mtl.matrix32 = floatd(my.skill2,256);
That should do the trick.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|