View Full Version : Simple cog request
EnsWaters
03-28-2003, 09:37 AM
Surface Animation
After 16 frames, replaces mat on a 3do to new mat.
After 16 frames, replaces mat on a 3do to new mat.
After 16 frames, replaces mat on a 3do to new mat.
After 16 frames, replaces mat on a 3do to original mat.
flex framerate value. Option for a flex wait value before switching to original mat would also be nice. Thanks in advance.
------------------
"You'll find life is full of surprises."
DSLS_DeathSythe
03-28-2003, 02:37 PM
# Written By DSLS_DeathSythe
#=====
symbols
#-----
message startup
message pulse
message timer
#-----
thing screen=-1
flex anim_spd=1.0
flex restart_wait=5.0
int frame=0 local
int i=0 local
model scrn_mdl0
model scrn_mdl1
model scrn_mdl2
model scrn_mdl3
material anim_mat0
material anim_mat1
material anim_mat2
material anim_mat3
#-----
end
#=====
code
#-----
startup:
if(IsServer() || !IsMulti())
SetPulse(anim_spd);
return;
#-----
pulse:
frame = frame + 1;
if(frame > 15)
{
frame = 0;
i = i + 1;
if(i > 3)
{
i = 0;
SetPulse(0.0);
SetTimer(restart_wait);
return;
}
SetThingModel(screen, scrn_mdl0[i]);
return;
}
SetMaterialCel(anim_mat0[i], frame);
return;
#-----
timer:
SetThingModel(screen, scrn_mdl0[i]);
SetMaterialCel(anim_mat0, 0);
SetMaterialCel(anim_mat1, 0);
SetMaterialCel(anim_mat2, 0);
SetMaterialCel(anim_mat3, 0);
SetPulse(anim_spd);
return;
#=====
end
this will do it but not exactly the way you say. i dont know how to change a mat on a 3do. so i did it another way. instead of changing the mat on the 3do it changes the 3do of the thing then contiues to animate the mat on that 3do. works the same but you will have to make copies of the same 3do and put your different mats on each one. then list the mats and the 3dos in the cog.
------------------
[This message has been edited by DSLS_DeathSythe (edited March 28, 2003).]
EnsWaters
03-28-2003, 10:44 PM
Hrm, I'll give it a shot, but I'm not sure how it's going to effect the other cog that controls the movement of the 3do...
------------------
"You'll find life is full of surprises."
EnsWaters
03-29-2003, 11:01 AM
Hrm, I really need it to be able to replace the mat on the 3do.
------------------
"You'll find life is full of surprises."
DSLS_DeathSythe
03-29-2003, 01:33 PM
sorry, i dont think that a mat can be changed on a 3do.
------------------
Edward
03-30-2003, 01:53 AM
<font face="Verdana, Arial" size="2">Originally posted by DSLS_DeathSythe:
sorry, i dont think that a mat can be changed on a 3do.
</font>
You will have to change the whole 3DO.
/Edward
Changing the 3do should cause no problems with the control of the object - it's all the template and the thing number that handles that.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.