Rotate Actor 360... simple right???
Tim_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
simple demo, but if all actors that rotate start at rotation 0, then you can just interpolate to 360
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
@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
Mark
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.
Thanks so much for your replies everyone!
I ended up downloading the RC and the file zweg25 supplied was perfect!
Thanks again
Tim
@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 ?
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 !
Is the question 'how do I know which section a spinning wheel settles on' ?
@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.
Here is a blast from the past that might help:
http://forums.gamesalad.com/discussion/52301/keep-numbers-on-roulette-wheel
@Radcompany said:>
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 . . . .