Bouncing Cloud
Hi,
How can I move a cloud up and down slowly.
I want to get the effect of gently floating. I have tried so many things.
Thanks,
Sema
How can I move a cloud up and down slowly.
I want to get the effect of gently floating. I have tried so many things.
Thanks,
Sema
Comments
_______________________________________
In the cloud actor:
First create 2 Integer Attributes:
whatdirction
wave
(leave them at 0)
_______________________________________
Timer:
__every 0.25 seconds --> (run to completein UNchecked) (this number can change to what you want)
____change attribute: Self.wave --> to (self.wave+1)%2
Rule:
when all conditions are valid
attriibute --> self.wave =1
+
attribute --> self.whatdirction = 0
___move
____direction 225 --> relative to actor --> move type: additive --> speed 100
______(both those numbers can change depending on what you want)
_______________________________________
Rule:
when all conditions are valid:
attribute --> self.wave =0
+
attribute --> self.whatdirection =0
__Move
____direction 135 --> relative to actor --> move type: additive --> speed 100
_____(both those numbers can change depending in what you want)
_______________________________________
Rule:
when all conditions are valid:
attribute- -> self.wave =0
+
attribute --> self.whatdirection =1
__Move
___direction 45 relative to actor --> move type: additive --> speed 100
_____(both those numbers can change depending on what you want)
_______________________________________
Rule:
when all conditions are valid:
attribute--> self.wave =1
+
attribute --> self.whatdirection =1
__Move
____direction 315 relative to actor->move type additive --> speed 100
_____(both those numbers can change depending on what you want
_______________________________________
Constrain Attribute: self.Position.Y To: 250-20*sin(self.Time*60)
250 is where the actor will start (in the Y direction). You can fiddle around with the numbers until you get the effect you want.
Be sure to use the drop-down menu in the expression editor to get 'self.Position.Y", 'sin' and 'self.time'. (Don't just type them in.)
Hope that helps!
Thanks.
Thank you both very much.
(Maybe its in a different orientation than I assumed.)
EDIT: Oops -- looks like you resolved it while I was posting.