Re: MoveToFrame question.


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Andy L. on July 10, 1998 at 21:02:22:

In Reply to: Re: MoveToFrame question. posted by BrianL on July 10, 1998 at 18:05:44:

: doh. Look at the source of the last message,
I knew what you ment. :-)

OK, this is an example. But I havn't gotten it to work in other COGS either.
I case anyones wondering I was board And I recreated part of Duke Nukem E1L1. And this was suposed to be the opening.

symbols
message startup
thing ghostship
template r41_tpl
thing r41 local
sound shipexplode
thing ghost0
thing ghost1
thing ghost2
template explosion_tpl=+Z95_exp local
flex speed
end


code

startup:

r41=creatething(r41_tpl, ghostship);

Sleep(2.0);
Print("I'm gonna Kill those alien b#$%&*#@ for shooting up my ride!");
MoveToFrame(r41,1,speed);
Print("Ship Just Moved");
WaitForStop(r41);
Print("Ship Just Stoped");

// DestroyThing(ship);
// playsoundpos(shipexplode, getthingpos(ship), 1.0, -1, -1, 0);
// make 3 ghost objects explode with raildet explosion
// CreateThing(explosion_tpl, ghost0);
// Sleep(0.05);
// CreateThing(explosion_tpl, ghost1);
// Sleep(0.05);
// CreateThing(explosion_tpl, ghost2);
return;
end

When this level starts. this is what I see.
"I'm gonna Kill those alien b#$%&*#@ for shooting up my ride!"
"Ship Just moved"
"Ship just stoped"

All are diplayed instantly. And the ship doesn't move.

I've had this problem with severel diferent COGS and I'm not sure what I'm doing wrong. The UsedInCog flag is Set for the object if that makes a diference.

Thanks.

-Andy




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]