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 → Frame Cogs
Frame Cogs
2001-05-27, 2:49 AM #1
Well, i writ this cog to move a thing through 30 frames, stop for 10 seconds, then go back to frame one. Only problem is, when the thing gets to about frame 3 or 4 or 5, the thing disappears. I have double checked ALL 30 of the frames, and they are all ok, so i think it is a cog problem. I am quite confident if my cogging skills, but not enough to think i havent made an error [http://forums.massassi.net/html/smile.gif] It would be appreasiated if someone could take a look and tell me what i am missing.

Code:
# Jedi Knight Cog Script
#
# runawaytrain.cog
#
#
# This will make a cart follow a specified path using frames.
#
# [EL3CTRO - 27/05/2001]
#
#(/\/\/\/\(()============================================================-
symbols

message touched

thing cart

int movespeed=2
int waittime=10

sector sectornum=31

end
#(/\/\/\/\(()============================================================-

code
# ....................
touched:

MoveToFrame(cart, 0, movespeed);
MoveToFrame(cart, 1, movespeed);
MoveToFrame(cart, 2, movespeed);
MoveToFrame(cart, 3, movespeed);
MoveToFrame(cart, 4, movespeed);
MoveToFrame(cart, 5, movespeed);
MoveToFrame(cart, 6, movespeed);
MoveToFrame(cart, 7, movespeed);
MoveToFrame(cart, 8, movespeed);
MoveToFrame(cart, 9, movespeed);
MoveToFrame(cart, 10, movespeed);
MoveToFrame(cart, 11, movespeed);
MoveToFrame(cart, 12, movespeed);
MoveToFrame(cart, 13, movespeed);
MoveToFrame(cart, 14, movespeed);
MoveToFrame(cart, 15, movespeed);
MoveToFrame(cart, 16, movespeed);
MoveToFrame(cart, 17, movespeed);
MoveToFrame(cart, 18, movespeed);
MoveToFrame(cart, 19, movespeed);
MoveToFrame(cart, 20, movespeed);
MoveToFrame(cart, 21, movespeed);
MoveToFrame(cart, 22, movespeed);
MoveToFrame(cart, 23, movespeed);
MoveToFrame(cart, 24, movespeed);
MoveToFrame(cart, 25, movespeed);
MoveToFrame(cart, 26, movespeed);
MoveToFrame(cart, 27, movespeed);
MoveToFrame(cart, 28, movespeed);
MoveToFrame(cart, 29, movespeed);
Sleep(waittime);
JumptoFrame(cart, 0, sectornum);

return;

end


------------------
Generating Electro Vibes™ for the masses on Massassi
Go To: EL3CTROPROSE or DEEPMATRIX
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
<EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-05-27, 5:24 AM #2
Try adding a Print("Moved to frame #"); before each frame to debug.

------------------
Together we stand.
Divided we fall.
2001-05-30, 11:24 AM #3
One reason why the cart 3do may disappear is if it is moving through more than one sector. A 3do will disappear if it's center dot is inside a sector that is not in your field of vision. This is a problem if a 3do extends out of one sector and into another.

------------------
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton

↑ Up to the top!