Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Simple cog request
Simple cog request
2003-03-28, 6:37 AM #1
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."
"You'll find life is full of surprises."
2003-03-28, 11:37 AM #2
Code:
# 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);
    return;
    }
  SetMaterialCel(anim_mat0, frame);
return;
#-----
timer:
  SetThingModel(screen, scrn_mdl0);
  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).]
Famous last words - "It seemed like a good idea at the time."
2003-03-28, 7:44 PM #3
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."
"You'll find life is full of surprises."
2003-03-29, 8:01 AM #4
Hrm, I really need it to be able to replace the mat on the 3do.

------------------
"You'll find life is full of surprises."
"You'll find life is full of surprises."
2003-03-29, 10:33 AM #5
sorry, i dont think that a mat can be changed on a 3do.

------------------
Famous last words - "It seemed like a good idea at the time."
2003-03-29, 10:53 PM #6
Quote:
<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
Edward's Cognative Hazards
2003-03-30, 10:34 AM #7
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.

↑ Up to the top!