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 → Activeting a COG from a 3DO
Activeting a COG from a 3DO
2000-11-09, 3:17 AM #1
I am working on a project and this thought just occured to me. Is it possible to make a 3D0 into a switch that moves another 3D0? Please post an example or direct me to one if possible...
2000-11-09, 7:35 AM #2
yeah.. you would put the actions you wanted to be done in the activated: message in the code, and specify the thing to be pressed as well as the thing to move (which would both be in the symbols).

-Jipe
2000-11-10, 9:47 AM #3
Sorry. In kinda dense. Do you mind giving 'step by step' instructions? Or something a little more deatailed. Im new to COG
2000-11-11, 10:25 AM #4
Code:
symbols:
thing switch
thing thingthatwillmove
end
code:
activated:
if (getsenderref()=switch)
{
if (getthingframe(thingthatwillmove)=0)
{
movetoframe(thingthatwillmove, 1)
}
else
{
movetoframe(thingthatwillmove, 0)
}
return
}


I got a lot of syntax wrong in that, and I am missing semicolons, and several other errors, but that's the general syntax
And meanwhile the bus with legs has destroyed half of disneyland . . . and nobody cares!
2000-11-11, 1:50 PM #5
Ack! I don't know COG. I know Visual Basic, but that doesn't help.

↑ Up to the top!