Can I need your help, im having troubling how to repeat this cloud passing by vertically from up to bottom. Here is the gif to see what I mean . Thank you for the reply appreciate it
I dont understand the question or your problem.
When Cloud.X() > windowHeight
Set Cloud.X() = 0;
Like I want to cloud to loop from top to bottom
I think Bouh meant Cloud.Y(); X is horizontal.
Yeah, Bouh’s suggestion will work. Maybe through a random in there just to make it more dyanmic.
For Each Cloud Object: If Cloud.Y() > WindowHeight()) || Set Cloud.Y() = "0 - (Cloud.Height() + Random(60))"
Use that in the condition only not in the action?
To step it out a bit:
- You’d create a new “For Each” event.
- You’d set it to use the object Cloud
- In the condition, you’d put something like " If Cloud.Y() > WindowHeight()" (Compare numbers condition)
- In the event, you’d put something like “Set Cloud.Y() = “0 - (Cloud.Height() + Random(60))”” (Change X position event)
That should work, I think.