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 → cog no workey
cog no workey
2002-03-10, 5:08 PM #1
GBK wrote this, yet it does nto work. Anybody know why? What i want it to do is well, i have a transport in my level. WHen you walk on it i want it to go through all of its 9 frames. But the last frame is the first frame, so bascially it goes through a circle and stops where it started.


# Resets to frame0 after arrival.
#
# 01/2002 GBK
Symbols
Message Entered
Message Arrived
Thing Plat
Flex Movespeed=2.0
Int Lastframe=9
Int L=0 Local
End
Code
Entered: If(Isthingmoving(Plat) != 0 || L != 0) Stop;
L=0; Movetoframe(Plat, Lastframe, Movespeed); Stop;
Arrived: Skiptoframe(Plat, 0, 1000);
Waitforstop(Plat); L=0; Stop;
End

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-03-10, 5:44 PM #2
Obviously I wrote it, thats my coding style; yet I dont remimber writing it. [http://forums.massassi.net/html/confused.gif]


 

Reguardless, this should work...

Code:
# Resets to frame0 after arrival.
# 
# 01/2002 - 03/2002 GBK
Symbols
Message Entered
Message Arrived
Thing Plat
Flex Movespeed=2.0
Int Lastframe=9
End
Code
Entered: If(Isthingmoving(Plat) != 0) Stop;
Movetoframe(Plat, Lastframe, Movespeed); Stop;
Arrived: Skiptoframe(Plat, 0, 1000);
Stop;
End



The first and last frmaes had better be right on top of each other, or the player is in for a real fast ride...

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-10, 5:46 PM #3
first and last frames ARE SAME SPOT :P

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-03-10, 6:32 PM #4
Hmm, ok. But does it work? [http://forums.massassi.net/html/wink.gif]

 

Oh, and BTW, where did you find this cog? I seriously dont remimber writing it. [http://forums.massassi.net/html/confused.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-11, 12:28 PM #5
It does not work. But maybe because i dont knw what to put in for last frame....if there are nine total frames, including the first and last being the same frame, do i put 9 or 0 for "lastframe"?

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-03-11, 12:33 PM #6
If your JED object has 9 frames, put 8 as the lastframe. If your JED object has 10 frames, put 9 as the lastframe.

 

Lastframe = JED object's number of frames - 1.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-13, 2:51 PM #7
You wrote this about 1-2 months ago.

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-03-13, 5:01 PM #8
[http://forums.massassi.net/html/confused.gif] Gah! Id forget to breath if it wernt involuntary.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-13, 5:43 PM #9
*sigh*.......*shakes head*...GBK, GBK, GBK.

http://forums.massassi.net/html/Forum4/HTML/002960.html

------------------
"Does that compute?

Or do I need to draw you a schematic!?"

↑ Up to the top!