rotation?
eboy
Member Posts: 239
I have asked this question before, but i am just not getting it to work, i am new to the gamesalad way....so I would like to have a wave that moves up and down in a random way with a little forward and backward motion. i cant seem to figure out the best way to do it...would u use a rule or how could u set up the rotation....if someone could help me out I could get to the next level. Thanks...
Comments
How do you mean 'up and down in a random way with a little forward and backward motion'?
Timer: Every 1 seconds: Change Attribute: self.RandomRotate = random(0,1)
Rule: When Attribute: self.RandomRotate = 0
--Rotate: Clockwise
Otherwise:
--Rotate: Counterclockwise.
Up and Down Wave Motion:
Change Attribute: self.InitialY = self.Position.Y
Constrain Attribute: self.Position.Y = 100*sin(self.Time*200)+self.InitialY
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
self.InitialY and self.Position.Y
where do you find initial Y?
I really wish you guys would do a few more GS tutorials on the basics of GS, the wiki is sorta limited, in my newbie opinion.