How do I make moving platforms?

Get help using Construct 2

Post » Fri Nov 20, 2015 9:04 am

I know there is a tutorial on this somewhere, I just cannot find it.
I want to make my platforms go back and forth.
Ashley makes the snails move back and forth in his tutorial with invisible boxes. Is this the same technique that I would use to move platforms?
Would this affect the Player if he happens to run into one of them?
Ken
B
12
S
4
G
2
Posts: 70
Reputation: 2,027

Post » Fri Nov 20, 2015 9:11 am

@Raybrite

Raybrite wrote:I know there is a tutorial on this somewhere, I just cannot find it.
I want to make my platforms go back and forth.
Ashley makes the snails move back and forth in his tutorial with invisible boxes. Is this the same technique that I would use to move platforms?
Would this affect the Player if he happens to run into one of them?
Ken


Have you looked at the built-in examples and templates?

One of the 'Platform' templates includes moving platforms.

Start a New project. In the search box type 'platform', It's the second template down called 'Template:Platformer'.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

Post » Fri Nov 20, 2015 9:53 am

I'll try that.
thanks.
B
12
S
4
G
2
Posts: 70
Reputation: 2,027

Post » Fri Nov 20, 2015 10:34 am

I think I have enough information to figure it out from that one.
Thanks again. You seem to always be there for me and it is very appreciated.
Ken
B
12
S
4
G
2
Posts: 70
Reputation: 2,027

Post » Fri Nov 20, 2015 7:48 pm

A little trick I like to use sometime is cosp()
cosp(a,b,x) basically will move a platform from a to b in timeframe x and then back again , either up and down or left and right .

ex: system.everytick-->sprite.set x cosp(50,400,time/3) or sprite.set y cosp(100,400,time/3)

its fast and easy and only uses 1 event , you can change the time it takes with the last parameter .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dop2000, jorgmaquoi and 15 guests