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 → Door Cogs
Door Cogs
2001-08-06, 5:23 PM #1
I need a cog like this...
Requires Four Surfaces to open it.
First Surface) Opens door a 1/4 way
Second Surface) Opens door half way
Third Surface) Opens door 3/4
Fourth Surface) Opens it all the way.

------------------
Yeah, but John, if the Pirates of the Caribbean breaks down, the pirates don't eat the tourists. - Ian Malcom
twitter | flickr | last.fm | facebook |
2001-08-06, 5:55 PM #2
What do you want the surfaces to trigger it ? , touched , activated ...

What happens if the switches are not opened in order ?

[This message has been edited by *_Seifer_* (edited August 06, 2001).]
2001-08-06, 6:46 PM #3
When activated and they have to be in order.

------------------
Yeah, but John, if the Pirates of the Caribbean breaks down, the pirates don't eat the tourists. - Ian Malcom
twitter | flickr | last.fm | facebook |
2001-08-07, 9:21 AM #4
Well, all you need is four frames, and each buttom moves the door to a certain frame. Do you know any cog yourself, or are you asking someone to write it up for you?
Massassi, delivering a million smiles a day. Well...almost. ;-)
2001-08-07, 9:43 AM #5
Code:
symbols

thing player local
surface surf1
surface surf2
surface surf3
surface surf4

int ndoors=0 local
thing door
flex movespeed=8

message activated

end

code

activated:
 if (GetSenderRef() != surf1[ndoors]) return;
 ndoors=ndoors+1;
 MoveToFrame(door,ndoors,movespeed);
Return;

end


That should work but I haven't tested it.

Thanks
JKMeteor
"Maybe you like rainbows"
I can't remember what to say!!!!
Click here for my homepage.
2001-08-07, 12:13 PM #6
Thanks

------------------
Yeah, but John, if the Pirates of the Caribbean breaks down, the pirates don't eat the tourists. - Ian Malcom
twitter | flickr | last.fm | facebook |

↑ Up to the top!