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
It would be appreasiated if someone could take a look and tell me what i am missing.
------------------
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*
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
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!
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!