Hi!
WHY WON'T THIS SMEGGING COG WORK???
/Edward
WHY WON'T THIS SMEGGING COG WORK???
Code:
# Intro to SS2
#
# By Edward
symbols
message startup
message pulse
thing look
thing ship
thing crates
thing cam2
thing cam3
thing cam4
thing crates3
thing ship2
template boom
template shard
template firy
sound music
sound quickly
sound nevercatch
sound woooow
sound alright
sound hyper
sound panic
sound break
sound cantbreak
sound weregonnacrash
sound woooooo
sound serious
sound cratepass
sound cratewacked
int i local
thing a0 local
thing a1 local
thing a2 local
thing a3 local
thing a4 local
thing a5 local
thing a6 local
thing a7 local
end
#
code
startup:
SetActorFlags(GetLocalPlayerThing(),0xa00000);
SetCurrentCamera(0);
SetCameraFocus(0,look);
sleep(1);
PlaySoundLocal(music,1,0,0xC0);
sleep(7);
MoveToFrame(ship,1,1);
sleep(24);
PlaySoundThing(cratepass,look,1,-1,1,0xC0);
MoveToFrame(crates,1,1);
WaitForStop(crates);
SetCameraFocus(0,cam2);
sleep(1);
PlaySoundLocal(quickly,1,0,0xC0);
sleep(GetSoundLen(quickly));
PlaySoundLocal(nevercatch,1,0,0xC0);
sleep(GetSoundLen(nevercatch));
PlaySoundLocal(woooow,1,0,0xC0);
sleep(GetSoundLen(woooow)+1);
SetCameraFocus(0,cam3);
PlaySoundLocal(alright,1,0,0xC0);
sleep(GetSoundLen(alright)-1);
PlaySoundLocal(hyper,1,0,0xC0);
for(i=0; i<256; i=i+1)
{
AddDynamicAdd(GetLocalPlayerThing(), i, i, i);
sleep(0.01);
}
SetCameraFocus(0,cam4);
PlaySoundThing(cratewacked,crates3,1,-1,100,0xC1);
MoveToFrame(ship2,1,1);
MoveToFrame(crates3,1,2);
sleep(1);
PlaySoundLocal(panic,1,0,0xC0);
sleep(3);
PlaySoundLocal(break,1,0,0xC0);
sleep(GetSoundLen(break));
PlaySoundLocal(cantbreak,1,0,0xC0);
sleep(GetSoundLen(cantbreak));
PlaySoundLocal(weregonnacrash,1,0,0xC0);
sleep(1);
PlaySoundLocal(woooooo,1,0,0xC0);
WaitForStop(crates3);
CreateThing(boom,crates3);
SetPulse(0.01);
for(i=0; i<8; i=i+1)
{
a0=CreateThing(shard,crates3);
CaptureThing(a0);
SetThingVel(a0,VectorSet((rand()*10)-5,(rand()*10)-5,(rand()*10)-5));
}
DestroyThing(crates3);
MoveToFrame(ship,2,1);
sleep(1);
PlaySoundLocal(serious,1,0,0xC0);
sleep(GetSoundLen(serious));
JKEndLevel(1);
return;
pulse:
for(i=0; i<8; i=i+1)
CreateThing(firy,a0);
return;
end
/Edward
![http://forums.massassi.net/html/redface.gif [http://forums.massassi.net/html/redface.gif]](http://forums.massassi.net/html/redface.gif)
![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)

![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)