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 → I need some basic cog help...
I need some basic cog help...
2002-03-23, 8:25 AM #1
I tried to make a cog to simply move a thing to a specified frame on startup (MP lvl, btw), but it doesn't work at all! I need a cog that will do this. (On a side note, if you have a damaged/broken version of 00tdown.mat, I would appreciate it if you would gimme a link. [http://forums.massassi.net/html/smile.gif]).

TY

(NOTE: I also failed on making a cog that put +sparks on a surface on startup, like 00_neonsign.cog does. I practically copied the code, but nothing happens. I don't need a cog that does this anymore, but I would appreciate knowing what I did wrong.)

------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

2002-03-23, 1:21 PM #2
try this:


#COG type thing
symbols
message startup

thing moveme

flex speed=2.0 desc=movement_speed

end

#COG code section
code

startup:
movetoframe(moveme, 1, speed);
return;
//always good to have a return;
end
2002-03-25, 2:45 PM #3
Ty Vader for replying, but I have since expanded my level, and as a side effect to a change I had to make, I no longer need the cog or the mat.

(FYI, I found out what I was doing wrong. I had a nasty syntax error, which JK wasn't telling me about, and it just ignored my cog. Let this be a warning to all of you reading this... [http://forums.massassi.net/html/smile.gif]))

------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

2002-03-25, 2:48 PM #4
Oh, yeah, one more thing:

Moderator, please close this topic, ty.

2002-03-27, 4:04 AM #5
JK will reject a cog with a syntax error like a baboon heart. At first I was annoying that missing a semi colon with screw up my cog...but think of it this way: would you rather the cog half worked? or you just knew you had a syntax error somewhere?

Besides, cogwriter has a syntax checker...now if only it had a find/replace function (!) I wouldn't ever need to use notepad!

↑ Up to the top!