Please or Register to create posts and topics.

Rapid button pressing

PreviousPage 2 of 3Next

I guess it could be made a little cleaner by using a logic case.

Id set a delay to the button. To make it where the play wont accidentally come across the problem.

-ArttyIntel-

I got it working almost perfectly now... the movement is fluid and the panels wont freak out anymore... only the telescopic arm still freaks a tiny bit... the "panel frame" is coming through the panels sometimes...

vZWgMeTOSKU

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

I even tried some different animations... but the arms keep comming through the panels :S

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

How are you doing this?

If the models are still clipping the panels, try making the panels a little thicker.

Kasc wrote:
How are you doing this?

http://www.youtube.com/watch?v=Q5na8Llhk8k

Marlovious wrote:
If the models are still clipping the panels, try making the panels a little thicker.

Yeh but i want them to be lined up with the floor once they are down... and in order to do that it has to be as thin as possible... it's 1 unit wide right now and only 1 unit lower then the floor when it is done.

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

Aren't most of the arms with panels already attached about 4 units thick? Honestly, a panel that sticks out 3 extra units will be almost unnoticeable to most people. Or put it this way, which looks worse, a panel that is slightly thicker than the surrounding wall or a model that clips through it's panel.

I already got it fixed! FINALLY! :D

No more ugly animation resets or panels/arms sticking out EVER!

It's all in the manner that you trigger the animation...

This is how i finally fixed it:

Set the prop_dynamic's DefaultAnimation to a "idle" animation that has the starting position you want (I'm using makeramp_06close_idle in this example). And make sure Hold animation is set to yes!

prop_floor_button
OnPressed > Button_OnPressed_Relay > Trigger > 0.10 delay
OnPressed > Button_OnUnPressed_Relay > CancelPending > 0.10 delay !!!
OnUnPressed > Button_OnUnPressed_Relay > Trigger > 0.10 delay

Button_OnPressed_Relay
OnTrigger > Panel_01 > SetAnimation > makeramp_06close > 0.10 delay ( FIRE ONCE ! ) !!!
OnTrigger > Panel_02 > SetAnimation > makeramp_06close > 0.20 delay ( FIRE ONCE ! ) !!!
OnTrigger > Panel_03 > SetAnimation > makeramp_06close > 0.30 delay ( FIRE ONCE ! ) !!!
OnTrigger > Panel_04 > SetAnimation > makeramp_06close > 0.40 delay ( FIRE ONCE ! ) !!!
OnTrigger > Panel_01 > SetPlaybackRate > 1 > 0.10 delay !!!
OnTrigger > Panel_02 > SetPlaybackRate > 1 > 0.20 delay !!!
OnTrigger > Panel_03 > SetPlaybackRate > 1 > 0.30 delay !!!
OnTrigger > Panel_04 > SetPlaybackRate > 1 > 0.40 delay !!!

Button_OnUnPressed_Relay
OnTrigger > Panel_01 > SetPlaybackRate > -1 > 0.10 delay
OnTrigger > Panel_02 > SetPlaybackRate > -1 > 0.20 delay
OnTrigger > Panel_03 > SetPlaybackRate > -1 > 0.30 delay
OnTrigger > Panel_04 > SetPlaybackRate > -1 > 0.40 delay

I watched some tutorial videos before and during the creating of these panels and all of them have 1 relay set a animation and the another relay set the playbackrate to -1. This will however create problems when triggering buttons really fast. But not if you do it the above way. The outputs marked with !!! are what is different from most tutorials and works in cases like these.

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

But what if you wanted to use 2 different animations?
Some animations show the weight of certain panels very well.
Like a heavy panel dropping 90 degrees out of a ceiling, the "out" animation drops the panel quite quickly, but the "in" animation first shows the arm being put under tension before actually moving the panel itself.

The "makeramp_xx" animations show this very well

Portal 2 Marriage Proposal project: Linking Annex
Spotlighted and over 9000 downloads!!! SP_Angrybombs


Here's my youtube & deviantart
PreviousPage 2 of 3Next