Posted: Tue May 06, 2003 7:35 pm
I made it this way:I don't need a stop thread anymore, because the bridge will always end this thread in the center.
But, of course, this looks rather strange as nihilo said. Now, when I tried to expand the script to 3 or even more bridge pieces with a to the center increasing rotation angle, it becomes a little difficult. I tried something likewith waitmoves at some positions but it didn't work until now. I will go on trying, but, maybe, someone knows without trying, where to set some wait commands? In the moment, with the script above, as far as I can remember, the bridge isn't moving at all. The aim is to make bridge1, 2 and 3 move at the same time to the next position and then to the one after that and so on...
Code: Select all
main:
level waittill spawn
thread bridge_prep
end
bridge_sway_on:
$bridge_on nottriggerable
$bridge1 rotateXupto 10
$bridge1 waitmove
$bridge1 rotateXdownto 0
$bridge1 waitmove
$bridge1 rotateXdownto 350
$bridge1 waitmove
$bridge1 rotateXupto 0
$bridge1 waitmove
$bridge_on triggerable
end
bridge_prep:
$bridge1 time 2
endBut, of course, this looks rather strange as nihilo said. Now, when I tried to expand the script to 3 or even more bridge pieces with a to the center increasing rotation angle, it becomes a little difficult. I tried something like
Code: Select all
bridge_sway_on:
$bridge_on nottriggerable
thread swing1 // to the left
thread swing2 // to the center
thread swing3 // to the right
thread swing4 // to the center again
$bridge_on triggerable
end
swing1:
$bridge1 rotateXupto 3 //outer parts
$bridge2 rotateXupto 6
$bridge3 rotateXupto 9 // center part
end
swing2:
$bridge1 rotateXdownto 0
$bridge2 rotateXdownto 0
$bridge3 rotateXdownto 0
end
swing3:
$bridge1 rotateXdownto 357
$bridge2 rotateXdownto 354
$bridge3 rotateXdownto 351
end
swing4:
$bridge1 rotateXupto 0
$bridge2 rotateXupto 0
$bridge3 rotateXupto 0
end