How do I make moving clouds for a fixed platform game?

Just started using Construct 2? Post your questions here

Post » Fri May 30, 2014 9:10 pm

Hi guys,

i wanted to request some help to make moving clouds, i'm making a fixed screen pvp platformer and i need the clouds to move from left to right at slightly different speeds and positions...


Any help?
B
7
S
2
Posts: 57
Reputation: 591

Post » Fri May 30, 2014 9:14 pm

When I do this I use "every tick" and "system create object"

create a cloud off the left edge of the screen.. at Y random(300) for the X and Y size you will enter "random(10,100) or what ever you like, this will create random sizes.
and then a "every tic" to move the cloud "forward" and random(10) or what ever speed you wish.
this will give you, random size, random speed and random positions
hope this helps :)
Image
B
26
S
4
G
3
Posts: 147
Reputation: 4,875

Post » Fri May 30, 2014 10:41 pm

I prefer to use the Bullet behavior rather than "every tock".
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778

Post » Fri May 30, 2014 10:47 pm

I didn't understand your instructions TonyW, didn't come quite clear, humm i tried this!

It does the job, but if someone has a better solution, i would love to learn :-)

VX and VY are the original position of each object (they are hundreds of pixels outside the left edge of the layout
You do not have the required permissions to view the files attached to this post.
B
7
S
2
Posts: 57
Reputation: 591

Post » Fri May 30, 2014 10:59 pm

thats what I was say'n basically, sorry if i confused you.
Image
B
26
S
4
G
3
Posts: 147
Reputation: 4,875

Post » Fri May 30, 2014 11:41 pm

Hello,
you can do it by adding a "Sin" behavior to your "Cloud" image

Properties:
.............................................
Movement:Horizontal
Wave: Sawtooth

as you play with Properties, you can make many effects for your clouds !
:lol: :lol:
You do not have the required permissions to view the files attached to this post.
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests