Making a wall move sidewise [SOLVED]

Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Hey, I am trying to make a map in Portal 2 using hammer. And now i have run into a problem. I want a whole wall to move sidewise when klicking a button. I cannot find an arm which can make such an animation i am searching for. I dont remember where, but i have seen this being done before when I played portal. Do someone know how i should do?

I am thinking of attaching many panels to each others and make them move backward at the same time, draging away a wall. So that the wall can be dragged a long distance. But i dont even know if that would work, and even if it would, it would probably not be a good way of solving the problem.

I am sorry if my broken english prevents you from understanding the problem. But if you can help me, thank you!

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Oct 15, 2011
Replied 1 minutes later
Tie it to a func_door
Remember in the flag section uncheck start open
Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Replied 2 hours later
Thank you! I've been sitting with this for a while now, trying to understand it. But i can't make the wall move in the direction i want. I dont reallt know if its the right thing to do, but when i want to adjust the direction, i change the numbers in the "Move Direction (pitch yaw roll) 0 0 0" column.

What happens is:
"Move Direction (pitch yaw roll) -90 0 0" ---> the wall moves up
"Move Direction (pitch yaw roll) 90 0 0" ---> the wall moves down

"Move Direction (pitch yaw roll) 0 -90 0" ---> the wall moves away
"Move Direction (pitch yaw roll) 0 90 0" ---> the wall moves forward

"Move Direction (pitch yaw roll) 0 0 -90" ---> the wall moves left
"Move Direction (pitch yaw roll) 0 0 90" ---> the wall moves left (!?)

i can't make it move to the right! Either its a bug in the beta. Or more likely its me who is stupid again.

Avatar
spongylover123
944 Posts
Posted Oct 15, 2011
Replied 12 minutes later

StGinger wrote:
Thank you! I've been sitting with this for a while now, trying to understand it. But i can't make the wall move in the direction i want. I dont reallt know if its the right thing to do, but when i want to adjust the direction, i change the numbers in the "Move Direction (pitch yaw roll) 0 0 0" column.

What happens is:
"Move Direction (pitch yaw roll) -90 0 0" ---> the wall moves up
"Move Direction (pitch yaw roll) 90 0 0" ---> the wall moves down

"Move Direction (pitch yaw roll) 0 -90 0" ---> the wall moves away
"Move Direction (pitch yaw roll) 0 90 0" ---> the wall moves forward

"Move Direction (pitch yaw roll) 0 0 -90" ---> the wall moves left
"Move Direction (pitch yaw roll) 0 0 90" ---> the wall moves left (!?)

i can't make it move to the right! Either its a bug in the beta. Or more likely its me who is stupid again.

Change it to 270

Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Replied 18 minutes later
Move Direction (pitch yaw roll) 0 0 270" ---> the wall moves left

It did not solve the problem :sad:

Avatar
spongylover123
944 Posts
Posted Oct 15, 2011
Replied 2 minutes later

StGinger wrote:
Move Direction (pitch yaw roll) 0 0 270" ---> the wall moves left

It did not solve the problem :sad:

Try other numbers 180, 360

Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Replied 2 minutes later
it still moves left
Avatar
Random
171 Posts
Posted Oct 15, 2011
Replied 1 hour later
I think I had this problem before. If you have to, you can work around it. move the wall to the right, then adjust it so it starts open (which would be left of where it appears in hammer, should be the original spot you wanted), then it will move right when it closes.
Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Replied 13 minutes later
Oh, why didnt i think of that. Smart, thank you!
Avatar
StGinger
49 Posts
Posted Oct 15, 2011
Replied 14 minutes later
And it worked. But now i have another problem. How do i get the wall to stop after a while. If i let the wall make the whole animation my room will lock quite ugly after it. Anyone knows how this is done?
Avatar
CaretCaret
290 Posts
Posted Oct 15, 2011
Replied 1 hour later
I would use a func_movelinear.
But for the func_door I think theres a property for how much it should stick out or something.
Avatar
StGinger
49 Posts
Posted Oct 16, 2011
Replied 13 hours later
what is the difference between a func_door and a func_movelinear?
Avatar
Skotty
671 Posts
Posted Oct 16, 2011
Replied 2 hours later
You can tell a func_movelinear to move to any position between 0 and 1 (start end endpoint).
Doors just can fully open or fully close. You could make them stop between the points but that is a bit more complicated by changing the speed and toggle the door so it applies the new speed.
Advertisement
Registered users don’t see ads! Register now!
Avatar
StGinger
49 Posts
Posted Oct 16, 2011
Replied 1 hour later
nah, i just leared to use "lip" and it seems to work just fine for what i want to do. But the problem is still that the door refuses to go right. Func_movelinear is much easier this way. But then i get a lot more problems when i want to add sounds to the animation.