How do I create flying platforms that go A to B po

Get help using Construct 2

Post » Mon Oct 31, 2011 4:00 pm

Construct 2 r65

Im trying to get a platform to go A to B position and then to A again in loop, in a side-scroller platformer game.

Ive tried in the Custom Movement behavior on the specific sprite but then in the action I cant find the right one and/or the right values. I dunno.

Im such a noob. Thanks for the time and patience.
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Mon Oct 31, 2011 4:10 pm

You might consider taking a look at "Platform 6 (slopes and moving platforms).capx" in the folder examples of your C2 install.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Oct 31, 2011 6:36 pm

wow, I'm really a newbie. lolol

I did not see that folder until now. It's gold, pure gold. THANKS :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Tue Nov 01, 2011 9:46 am

Can you help with this?

System every tick
Platform Set Y to 250 + sin(time * (360 / 5)) * 150

the 250 is where it begins floating, the rest seems to be the speed of it, but where/how do I say "start at 250 to 450 and then come back"

Because in this way it goes way more up than I want it go.

arghhh :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Tue Nov 01, 2011 10:15 am

I did it with SINE Behaviour :)

at least it did the trick
B
18
S
4
G
5
Posts: 149
Reputation: 4,498


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests