Looping and Rotation problems

SandbirdSandbird Member Posts: 69
edited November -1 in Working with GS (Mac)
This GS is pissing me off sometimes.

I want to rotate an actor to an angle of 45 clockwise, and then when this is done, to rotate it anti-clockwise 45 degrees...and all this to loop.

I thought run to completion would allow 2 rotations to be set one under the other...but i guess not.
They both run at the same time....meaning my actor stays put.

I've tried with 2 timers, with a rule, and with rules and timers together....but nothing.

Can anyone help me out a bit ?
-Thanks

Comments

  • old_kipperold_kipper Member Posts: 1,420
    try something like -

    rule set to run when you want

    change attribute self.motion.angularvelocity to 180

    timer 1- after 1 second

    change attribute self.motion.angularvelocity to -180

    timer 2 every 2 seconds

    change attribute self.motion.angularvelocity to 180

    timer 3 inside the timer 2- after 1 second

    change attribute self.motion.angularvelocity to -180

    it seems to work and you can change the speeds and timings to set things as you wish

    hope that helps

    kipper
Sign In or Register to comment.