Rotate

Posted By: Marky Mark

Rotate - 08/09/07 20:51

Another noob question.

I can't get c_rotate to work. I only want an entity to slowly rotate (from right to left)..

Thanks to help
Posted By: AttosRH

Re: Rotate - 08/09/07 20:55

you can use my.pan but in this way it will not detect collisions...
Posted By: Marky Mark

Re: Rotate - 08/09/07 21:16

I do not need any collisions. Thanks i'll check this out.
Posted By: Marky Mark

Re: Rotate - 08/09/07 21:18

Hum, and how do I set the pan to rotate the entity? (Damn sorry for my bad knowledge)
Posted By: demiGod

Re: Rotate - 08/09/07 21:40

my.pan += 10 * time_step; (in a loop) ?

O_o
Posted By: Marky Mark

Re: Rotate - 08/10/07 03:44

I tried it.

while(1)
{
my.pan += 10 * time_step;
}

in my action.

I get this ingame error : Possible endless loop in [myaction]
Noooo really? hey! that's what I want! so I press Ok but I have to press Cancel because this annoying error message is popping in my face every .5 seconds. then it crashes.

Any idea?

Sorry about me
Posted By: Claybotech

Re: Rotate - 08/10/07 04:54

You forgot to add you wait statement below your action in yor while loop.
You are not allowing anything else to run.
In loops, the wait statement is crucial.
You should really review the tutorials available on the download page, as this will really help with some of your scripting.

After this line:
my.pan += 10 * time_step;
Insert the following:
Wait(1);

Clay...
Posted By: AttosRH

Re: Rotate - 08/10/07 11:27

read the 8th workshop for more details
Posted By: Marky Mark

Re: Rotate - 08/10/07 14:53

Oh my god! Thanks, but I don't know why I forgot the wait statement! maybe its because of my 3 months off of 3dgs, and I was already a newbie... Anyway, sorry for my frenchie english, thanks, and have a nice day
© 2024 lite-C Forums