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 → Using frame verbs
Using frame verbs
2001-12-20, 11:53 AM #1
I spent most of today researching the frame verbs. I found that SkipToFrame() and MoveToFrame() do almost the same thing. The only difference I could find is that SkipToFrame() does not update the current frame (retrieved with GetCurFrame()) of an object when it arrives at its destination.

Are there any other known differences?

Another thing: I saw in some custom cogs that you can tell an object to move to the next frame without waiting for it to reach the first. And I suppose that once it reaches the first frame, the object would go to the next.

Is there some rule for stacking move commands like that? I did some experimenting with door cogs, and I couldn't get the door to accept two move commands at once.

------------------
Incognito
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-12-20, 12:25 PM #2
One of my very early levels released had a troop transport move around a canyon using several frames. Here's what I found...

MoveToFrame() would make the transport move to the desired frame, via all middle frames from the current frame. ie: current frame is 3, desired frame is 10, would go 3,4,5,6,7,8,9,10

SkipToFrame() would make the transport move directly to the desired frame regardless of what the current frame is. ie: current frame is 3, desired frame is 10, would go, 3,10.

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2001-12-20, 1:47 PM #3
The first trooptran cog I made (almost 2 years ago...), I made the mistake of parsing evry move. I finally realized that all I needed was 1 move command. I think most n00b coggers make that mistake.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-12-21, 8:11 AM #4
Ahh. Thanks alot Raynar [http://forums.massassi.net/html/wink.gif]

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

↑ Up to the top!