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 → Train
Train
2003-07-01, 7:06 PM #1
Howdy! I have almost NO knowlege of cogs n' stuff. I can make my doors work, and goals and stuff like that, but that's it. I was wondering if there's a cog (or if someone could make me a cog) where the traincar 3do is generated, moves to a second frame, and then disapears. This is to show a train moving across a brige above a conyon. The train comes out of one tunnel, crosses the bridge, and then enters into another tunnel where it disapears. Can someone help me out?

------------------
There are three kinds of people in the world. Those who can count, and those who can't.
2003-07-01, 11:24 PM #2
OK, I'll give this challange a try...
Code:
# Train out one tunnel, in another, and disappears...
#
# By Edward
symbols

message    startup
message    pulse

thing      trainpos
template   train
thing      t             local

flex       delay
flex       speed

end
#
code
startup:
        SetPulse(delay);
return;
pulse:
        t=CreateThing(train,trainpos);
        CaptureThing(t);
        MoveToFrame(t,1,speed); //Your choice
        WaitForStop(t);
        DestroyThing(t);
return;
end

Make sure your trainpos is a ghost and has the same values you want your train to have.
The delay is how long between the trains.

/Edward
Edward's Cognative Hazards
2003-07-02, 9:10 AM #3
Umm, thanks, but I'm not exactly sure what to do with this. I put it in JKMRES.goo, but when I put it in my level it doesn't have the nice happy words next to the boxes where you input things like the thing number and stuff.

------------------
There are three kinds of people in the world. Those who can count, and those who can't.
2003-07-02, 9:11 PM #4
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Axis:
I put it in JKMRES.goo</font>


HUH?? WHY? You should save your level (im sure you do that) and in dir that it was saved place /cog dir, and then place your cog there. So other people can use it when level get gobbed.

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-07-02, 10:44 PM #5
Changing jkmres.goo is a big nono! If you want to change something for you alone always place it in the resource folder, that overwrites jkmres.goo.

But in this case indeed you have to do waht EH_AceCSF said, place the cogfile edward made in your projectdir\cog folder.

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com

↑ Up to the top!