Vertical moving platforms throwing me off!

Discussion and feedback on Construct 2

Post » Thu Sep 29, 2011 11:04 pm

I've tried to make a platform in my game move vertically by using
'Set Y to 100 + sin(time*(360/5))*150'
and my collision masks all seem to be right but when the play jumps on the platform it just wants to throw them off!

Any ideas on how I can fix it? My horizontal ones work fine.

Small example can be found here
B
3
G
2
Posts: 20
Reputation: 1,140

Post » Fri Sep 30, 2011 1:26 am

Can you post the .capx?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Fri Sep 30, 2011 5:51 am

I don't know if it's the same issue here, but in CC it was a problem if platforms weren't set to integer coordinates. Otherwise you couldn't stand on them no matter what you do.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Sep 30, 2011 8:45 pm

Its very messy because its my first project, and is just an experiment to get down the basics. The object in question though is Sprite12.

File linked below.
Capx
B
3
G
2
Posts: 20
Reputation: 1,140

Post » Fri Sep 30, 2011 9:04 pm

I just tried your capx and it worked fine for me. Actually looked quite good :)

If I may make a suggestion - place the lighter buildings on a separate layer to add parallax. Adds a sense of motion :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

Post » Fri Sep 30, 2011 9:47 pm

[QUOTE=zenox98] I just tried your capx and it worked fine for me. Actually looked quite good :)

If I may make a suggestion - place the lighter buildings on a separate layer to add parallax. Adds a sense of motion :)[/QUOTE] Are you sure it worked right? It doesn't work on mine properly nor does it work on the web demo I linked in the first post. Its the last moving platform that moves vertically, all the others move horizontally. If your trying the capx move the player so you don't need to run through the whole level.

Not a bad call on the background either!
B
3
G
2
Posts: 20
Reputation: 1,140

Post » Fri Sep 30, 2011 10:04 pm

Yea, sorry. My mistake - he does indeed wander off :/
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

Post » Sun Oct 09, 2011 8:36 pm

I'm still stumped on this, I've tried paying with the gravity and even physics and I still can't seem to get it to work. :(
B
3
G
2
Posts: 20
Reputation: 1,140

Post » Thu Oct 13, 2011 6:22 pm

Same happens to me when playing, the first moving platform wants to throw my off to the left.

Edit: sorry, so do the others.Nickydude2011-10-13 18:33:19
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Thu Oct 13, 2011 8:27 pm

Before moving the platforms have the player move the same amount as the platform is going to move. The platfom the player is on is found by moving the player 1 pixel down, checking for overlap then moving back to where it was. Basically it does what "overlaps at offset" did for CC.
http://dl.dropbox.com/u/5426011/c2/vertical%20platforms.capxR0J0hound2011-10-13 20:28:03
B
79
S
24
G
55
Posts: 4,755
Reputation: 41,273

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests