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 → Another SP cog.....
Another SP cog.....
2002-07-24, 12:21 PM #1
WHen a thing is acticated, another thing moves from frame 0 to frame 1 and stays there, never going back.

------------------
Sanctum de la Mort
2002-07-24, 12:33 PM #2
This should work:

Code:
# movething.cog
#
# Move a thing to it's second frame when another thing is activated.
#
# [SM]
#==============================================================#
symbols

thing     touchThing
thing     moveThing    nolink

flex      speed

int       done=0       local

message   activated

end
#==============================================================#
code
#------------------------------------------------------
activated:
	if(done) Return;
	done = 1;
	MoveToFrame(moveThing, 1, speed);

Return;
#------------------------------------------------------
end


There you go. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!