View Full Version : PPLE WHO KNOW HOW TO COG
SithNazgul
01-23-2001, 09:41 PM
I've been asked to help make cogs for a lvl in JK with a stargate. Dum dum da dum. I cant make cogs. I intend to learn....can someone help me out? I may not be able to do what he's asking....And i will need help anyway. Anyone willing plz email me.
Thanks
Anthony
------------------
One ring to rule them all,
One ring to find them,
One ring to bring them all and in the darkness bind them.
Ruthven
01-24-2001, 02:18 PM
Thanks for starting this off ANthony, I made a brake through with one of my cogs:
Right people, this is what we want. You press a console, 8 pieces of stone move, wait a bit, then 4 rings com down to th e player, wait a bit, a sectorthrust is created pushing the player up to another floor.
I got it working at one point, but Ive changed it and now nothing happens:
have a look
symbols
message activated
sector thrustsector
thing console
thing slice0
thing slice1
thing slice2
thing slice3
thing slice4
thing slice5
thing slice6
thing slice7
thing ring0
thing ring1
thing ring2
thing ring3
end
# ================================================== ======================================
code
activated:
movetoframe(slice0, 1, speed);
movetoframe(slice1, 1, speed);
movetoframe(slice2, 1, speed);
movetoframe(slice3, 1, speed);
movetoframe(slice4, 1, speed);
movetoframe(slice5, 1, speed);
movetoframe(slice6, 1, speed);
movetoframe(slice7, 1, speed);
sleep0.5=
movetoframe(ring0, 1, speed);
sleep0.5=
movetoframe(ring1, 1, speed);
sleep0.5=
movetoframe(ring2, 1, speed);
sleep0.5=
movetoframe(ring3, 1, speed);
sleep1=
SetSectorThrust(0/0/1, flex3);
sleep1=
SetSectorThrust(0/0/0, flex0);
return;
# .................................................. ......................................
end
Ruthven
01-24-2001, 02:23 PM
Compared with the other cogs that people are working with ,we should have nea problem, its so simple compared (still tricky for me)
Hell Raiser
01-24-2001, 07:59 PM
Your problem is in the sleep statements. It should be Sleep(time); not the way you have it.
------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots (http://rbots.massassi.net/)
Ruthven
01-25-2001, 11:52 AM
Thank you :-)
Aglar
01-26-2001, 09:56 AM
Try to refrain from posting topics in all CAPITAL LETTERS. IF you do, people often reply only with stuff like "This will be closed". Just a friendly reminder http://216.105.160.32/html/biggrin.gif
------------------
Together we stand.
Divided we fall.
Ruthven
01-26-2001, 02:48 PM
HELP! I can get the stones to move and now the rings come down(looks cool). When I added ;
sleep(time1);
move the rings back up(simplified)
sleep(time1);
move the stones back
the stones open, the rings start to come down, but suddenly they go back to frame 0 and so do all the stones . What is this? Smthing to do with time
SithNazgul
01-27-2001, 02:34 AM
Ahh ok. Thanks.
SithNazgul
01-27-2001, 02:40 AM
hooo....
Maybe you have somewhere in there a syntax error that makes JK go back to frame 0.
Hmm...just thinking.....Can you do sub programs in COG? I dont think you should have it that way. Try telling it to when you press da dam big button, to execute program A, which moves some stones, then tell at the end of program A, to goto program B. Program B will have in it the code to move the rings down. Now tell it to goto program C, which will move the rings back, the program D will tell it to move the stones.
What stones BTW?
Anthony
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.