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 → whats wrong with my cutscene? Please help
whats wrong with my cutscene? Please help
2003-05-29, 5:27 PM #1
Well I started on a small test level that is going to be a cutscene. I am kinda new to this but here is my cog:

symbols

thing camera1
thing camera2
thing Greedo
thing player local
thing kyle local
sound beep=beep2.wav local
sound gredtalk=i00gr11z.wav local
sound kyle=i00ky01z.wav local
sound kyletwo=i00ky77z.wav local
sound greedtwo=i00gr08z.wav local
sound greedlaugh=i00gr01t.wav local
message startup

end

code

startup:

Player = GetLocalPlayerThing();

// freeze Kyle
SetActorFlags(Player, 0xa00000);
StopThing(Player);

jkBeginCutscene();
Sleep(0.0);
AiSetMoveFrame(Greedo, 2);
SetCameraFocus(0, camera1);
Sleep(3.0);
SetCameraFocus(0, camera2);
MoveToFrame(camera2, 1, 1.5);
PlaySoundLocal(gredtalk, 1, 0, 132);
Print("Hi, I was wondering if you would like to buy some snacks from me.");
Sleep(2.5);
MoveToFrame(camera2, 2, 1.5);
PlaySoundLocal(kyle, 1, 0, 132);
Print("This is exactly what I needed...");
Sleep(2.5);
MoveToFrame(camera2, 1, 1.5);
PlaySoundLocal(greedtwo, 1, 0, 132);
Print("Okie Dokie, heres three candies.");
Sleep(2.5);
MoveToFrame(camera2, 2, 1.5);
PlaySoundLocal(kyletwo, 1, 0, 132);
Print("This is got to be bad for my health...");
Sleep(2.5);
MoveToFrame(camera2, 1, 1.5);
PlaySoundLocal(greedlaugh, 1, 0, 132);\
Print("heh heh heh, sucker...");
Sleep(2.5);
jkEndCutscene();
jkEndLevel(1);
Return;

end
______________
When i start up my level it shows first person veiw and then freezes. I have to shut off my computer [http://forums.massassi.net/html/frown.gif] Anyone know what the problem is?

------------------
Eat food
Eat food
2003-05-29, 6:01 PM #2
try putting that first sleep right below the startup message, and make it like 0.1 instead of 0.0 you wont notice the wait.
and i think you have to put SetCurrentCamera(0); before you try to set the cameras focus to something else.
so try putting the first of your cog like this:
Code:
startup:
  Sleep(0.1);
  Player = GetLocalPlayerThing();
  // freeze Kyle
  SetActorFlags(Player, 0xa00000);
  StopThing(Player);
  jkBeginCutscene();
  AiSetMoveFrame(Greedo, 2);
  SetCurrentCamera(0);
  SetCameraFocus(0, camera1);
  Sleep(3.0);
  // --THE REST OF YOUR COG DOWN HERE--

see if that fixes your cog.

------------------
Famous last words - "It seemed like a good idea at the time."

[This message has been edited by DSLS_DeathSythe (edited May 29, 2003).]
Famous last words - "It seemed like a good idea at the time."
2003-05-30, 3:49 AM #3
Sleep(0.0) is kinda redundant isn't it? It's not going to wait, and it's probably whats freezing up JK. (since it never reaches the camera switching portion)

------------------
-Blessed Be-
Nothin says lovin like somethin from the Coven
DBZ: The Destruction is Real
-Hell Raiser

↑ Up to the top!