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 → JumpToFrame and SkipToFrame
JumpToFrame and SkipToFrame
2002-02-18, 7:29 AM #1
I was wondering what the defference is between these two cog verbs...

I cant get either to work.

I tried using jump to frame to move a simple
3do here and the cog just stops after MoveToFrame is done.

symbols


message entered
thing startube
flex speed=5.0
sector jumpsector
int cur_round=0 local
int rounds=25 desc=rounds

end
#===========================================================#
code

entered:

cur_round = 0;
while(cur_round < rounds)
{
movetoframe(startube, 1, speed);
jumptoframe(startube, 0, jumpsector);

cur_round = cur_round + 1;
}
end
2002-02-18, 8:29 AM #2
A common mistake made by n00b coggers is the misuse of movetoframe. Add a 'Waitforstop(Startube);' between the 2 move verbs.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-02-18, 8:55 AM #3
Thank you mighty cogger. It works great.

↑ Up to the top!