Rotate Actor 360... simple right???

Tim_ATim_A Member, PRO Posts: 60

Hi all...

I'm missing something right?

All I want to do is rotate my actor through 360 degrees once when a certain event is triggered but I can't seem to do it?

I've tried interpolating self.rotation to self.rotation+360 but it just spins wildly.

Is there a simple way to rotate an actor through 360 degrees once?

Thanks for any advice

Tim

Comments

  • zweg25zweg25 Member Posts: 738

    simple demo, but if all actors that rotate start at rotation 0, then you can just interpolate to 360

  • Tim_ATim_A Member, PRO Posts: 60

    Ah I can't open it (version 0.2.1)... is there a way you can screen print or explain the process please?

    Kind Regards

    Tim

  • JSprojectJSproject Member Posts: 730

    @Tim_A you can open 0.2.1 files with creator 0.12.6 (release candidate) which you can download from: http://gamesalad.com/download/releases

  • GnarlyGnarly canadaMember Posts: 840

    Mark

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Make a boolean attribute (self.rotatenow) within the actor.

    When certain event is triggered
    Change attribute self.rotatenow to true.

    When self.rotatenow is true, rotate clockwise/counterclockwise at x speed (You determine x).

    After z seconds change attribute self.rotatenow to false. (You determine z)
    After z seconds rotate to angle 360, stop at angle.

    Try this out, I'm not near my macbook so bear with me as some of the information may be incorrect. Hope this helps.

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2014

  • Tim_ATim_A Member, PRO Posts: 60

    Thanks so much for your replies everyone!

    I ended up downloading the RC and the file zweg25 supplied was perfect!

    Thanks again

    Tim

  • RadcompanyRadcompany Member Posts: 15

    @Socks I'm designing a Triva Game with a Rotating 6 Part Pie Chart. Each Color represents a different Category topic. I'm using random speed & timer on the rotation on the Chart .

    I'm struggling with being able to Call Up each individual category, say Yellow (history) Category. I want to use only 1 image, not 6 wedges.

    Is there a way to see up a measuring RANGE SETS in degree of rotation; say FIRST rotation, 0,60 degrees. SECOND rotation, 360,420 degrees, THIRD rotation 720,840 degrees, etc ?

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2015

    @Radcompany said:
    Is there a way to see up a measuring RANGE SETS in degree of rotation; say FIRST rotation, 0,60 degrees. SECOND rotation, 360,420 degrees, THIRD rotation 720,840 degrees, etc ?

    Sorry ! :| I don't know what that sentence means, it appears entirely opaque to me, I was lost at 'a way to see up a measuring RANGE SETS', I don't even know what 'see up' means, but maybe it's a regional thing ? I have to admit to being easily confused by a lot of the questions on this forum !:smile:

    Is the question 'how do I know which section a spinning wheel settles on' ?

  • RadcompanyRadcompany Member Posts: 15
    edited May 2015

    @Socks sorry about the typos. English is my only language lol. Let me restate:

    Yes, trying to set up a control which section of the spinning wheel settles on?

    6 sections. I tried to link a screenshot. Any help or other questions are welcome.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2015

    @Radcompany said:>

    . . . which section of the spinning wheel settles on?

    If rotation%360 => 30 and < 90 then green
    If rotation%360 => 90 and < 150 then yellow
    If rotation%360 => 150 and < 210 then pink

    etc . . . .

Sign In or Register to comment.