toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
loop
eboy
Member
Posts:
239
February 2010
edited November -1
in
Working with GS (Mac)
is there anyway to create a rule set and then have that rule run as a loop....I want an actor to rotate 4 degrees CW and then 5 degrees CCW and then back and forth...
Comments
scitunes
Member, Sous Chef
Posts:
4,047
February 2010
Create an integer attribute (self.loop) set it to 1
Have a timer that says every __ seconds change self.loop to self.loop*-1
Then have rules when self.loop = 1 rotate 4 CW
When self.loop = -1 rotate 5 degrees CCW
Sign In
or
Register
to comment.
Comments
Have a timer that says every __ seconds change self.loop to self.loop*-1
Then have rules when self.loop = 1 rotate 4 CW
When self.loop = -1 rotate 5 degrees CCW