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 → Can someone help me out...
Can someone help me out...
2001-10-05, 6:55 PM #1
I need a cog for when u get on a transport, it waits for about .25 then it takes off on a set course of frames... I was wondering if someone could do me a big favor and write me one up since my cogging skills arent that great yet... if someone could i would much appreciate. I can take care of setting how many frames and stuff after it is made. Thnks alot!


------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download
2001-10-06, 7:25 AM #2
Havent tested it, but it should work..:


#10/2001 GBK

Symbols
Message Entered
Message Touched
Message Timer
Thing Trans
Int Lastframe
Flex Movespeed
Flex Sleeptime
Int Done=0 Local
End
Code
Entered: Call Touched; Return;
Touched: If((Getsenderref()==Trans) && (Done==0)){
Settimer(Sleeptime); Done=1; } Return;
Timer: Movetoframe(Trans, Lastframe, Movespeed);
Return;
End

I think its fairly self-explanitory, but...

Lastframe: This is the number of frames your object has, be sure to add one more. IE, if your object has 20 frames, put 21 here.
Movespeed: How fast the object goes.
Sleeptime: The wait after you touch the object before it goes off on its merry way.



------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-10-06, 12:23 PM #3
Havent tried it yet, but thnks a million!

------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download

↑ Up to the top!