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 → Keyframes
Keyframes
2003-07-08, 7:24 PM #1
I'm working on a cutscene cog and there is a part that deals with two keyframes, but I can't get the first one to stop playing so the second one can start, heres the part of the code,
Code:
SetCameraFocus(0, Jcamera);
PlayKey(jailplayer, sitkey, 1, 0x6);
MoveToFrame(Jcamera, 1, 1);
WaitForStop(Jcamera);
Print("That should keep you.....");
Sleep(1.5);
AISetMoveFrame(guard, 1);
Sleep(.75);
AISetMoveFrame(jailplayer, 1);
PlayKey(jailplayer, getupkey, 1, 0x6);
Print("There has to be some way to get outta here...");
Sleep(5);

It'll play "sitkey" but how do you get it to stop playing it, StopKey() only works with using the submodes from a .pup file.

Also, the thing is supposed to be sitting on a bed and move forward to the next frame as it gets off the bed, but it won't play "getupkey" and won't move to the next frame, any ideas?

If you need more of the cog, I'll post it.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited July 08, 2003).]
2003-07-08, 7:41 PM #2
Well, I think I fixed the keyframe problems, but it still won't move to the next frame.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"
2003-07-09, 4:56 PM #3
No, StopKey() will do what you want, it doesn't use pup modes. Use:
Code:
anim=PlayKey(etc);
StopKey(player, anim, 0);


Looks like the frame problem might be in the level... try commenting out the other code, and see if you can get just the AI move to frame command to work.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-09, 5:57 PM #4
Thanks, I got it to work already, I just don't know how well, I'll try that.

The problems with the frames was that I forgot to add the right thingflags to the thing in JED, after I changed those, it worked.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited July 09, 2003).]

↑ Up to the top!