How would you make a rolling log?

Rogueleader

L1: Registered
Feb 2, 2008
13
0
I am making a Mario type map and i am trying to create a log that rolls back and forth dividing two walkways.

I have not had any success so far.

Picture of the rolling log

hammer2008022515425276mt4.jpg


Could any one of you help me get the log moving back and forth and possibly with a rolling motion?
 

Rogueleader

L1: Registered
Feb 2, 2008
13
0
i will take that as you would also like to know how to do this
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
What have you tried so far? From the pic it looks like you're using a func_tracktrain on a path_track? That method would probably work for getting the object to move back and forth, is the log moving at all?

As for the rotation, the obvious choice would be func_rotating but unfortunately that entity is broken in TF2. An alternative might be a func_door_rotating that continuously opens and closes itself, parented to an invisible train.

You may want to try a func_platrot. I haven't used these but it seems like it could do both the movement and the rotation.

Another option to look into might be using a func_movelinear instead of func_tracktrain for the horizontal movement.
 

Rogueleader

L1: Registered
Feb 2, 2008
13
0
Yes i have mainly tried a func_rotating parented to an invisible train inside the block but i wil try the rotating door and the other things you suggested.

Thank you and i will get back to you soon

And trackhed that was harsh, Pseudo said only good things to help me so why would you say something like that when he has done a lot to help people?
 

Sacrifist

L3: Member
Nov 21, 2007
130
7
You can get the log to move along a path several different ways. Im not sure about rotating it toware it looks good in TF2 though.
 

MangyCarface

Mapper
aa
Feb 26, 2008
1,626
1,325
Three objects, maybe an entity to time it all. You're going to make a func_door that moves at the speed you want the log to go back and forth at, in the direction you want it to. Make the brush it's tied to very small and then create a func_rotating that rotates in the direction you want it to. Make this a small circular brush. Parent it to the door. Finally make the log itself a func_brush and parent it to the func_rotating. You can even just try to make the func_rotating the log itself. I think func_door will make this whole process a lot easier for you than the whole invisible train deal. Have a logic_auto tell the door to move onmapspawn and then tell the door to fire its Close function onfullyopened and its Open function onfullyclosed.

EDIT: So func_rotating doesn't work in tf2... well cancel what I said about that, but seriously just use func_door, it's basically the same as movelinear and pretty easy/versatile to work with.
 

TheFragMan

L1: Registered
Jan 9, 2008
33
1
Your not the sharpest tool in the shed are you?

Don't you mean "You're"? ;)

Normally I don't get in the middle of things, but Rogueleader has a point. If trackhed really had "nothing good to say," he wouldn't have even said "..."

But back to the point of the thread: Rogueleader, I too would try to use a func_door_rotating. You can set it to open or close when it reaches the path_tracks on either end to reverse the roll direction. You'll just have to adjust the speed of the door_rotating to make it appear to actually be rolling, rather than sliding along. Let us know how it works.