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 → could you help me with this thingy??
could you help me with this thingy??
2002-09-03, 12:59 PM #1
I bet this has been asked a trillion times but I need to know how to make a cog that will alow you to make ships fly.. sorry for the bother but i need to know!! [http://forums.massassi.net/html/biggrin.gif]

------------------
I oWn OwNaGe
2002-09-04, 3:59 PM #2
Look at the in game cogs. You can check them out in Jed or with conman. Most ships fly with frames...just like an elevator.
2002-09-05, 6:51 AM #3
Keyframe movement looks better, but frame movement is a lot easier to implement. If your ship's movement is generic enough (i.e., simply a takeoff or something) then you could use one of the crow keyframes.

Once you decide which type of movement you want to use, reply and I'll write a cog for it. [http://forums.massassi.net/html/wink.gif]

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

[This message has been edited by SaberMaster (edited September 05, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-09-07, 1:39 PM #4
ill think ill use the key frames [http://forums.massassi.net/html/wink.gif] but forst u gotta tell me.. how do i put key frames in my lvl??

------------------
I oWn OwNaGe
2002-09-08, 12:50 AM #5
That, sir, is a question for the Generaql Editing forum.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-09-08, 12:07 PM #6
You don't put keyframes in a level. They're stored in .key files and can be used in any level. After you learn how to use them, here's a cog to play them:

Code:
# playkey.cog
#
# Play a ship keyframe.
#
# [SM]
#==============================================================#
symbols

thing     ship

keyframe  shipKey

flex      startDelay

int       done=0       local

message   startup

end
#==============================================================#
code
#------------------------------------------------------
startup:
	if(!done)
	{
		done = 1;
		Sleep(startDelay);
		PlayKey(ship, shipKey, 5, 0x4);
		Sleep(GetKeyLen(shipKey));
		DestroyThing(ship);
	}

Return;
#------------------------------------------------------
end


I'm assuming here that you want the cog to run on startup. Let me know if you need it to run on some other event. Make sure that your template has a .pup file assigned to it. You can probably just give it cr.pup.

Good luck. [http://forums.massassi.net/html/wink.gif]

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

↑ Up to the top!