questions with "Scroll To"

Get help using Construct 2

Post » Sat Jan 28, 2012 11:57 pm

Hello all,

I'm more of a problem, I hope you help me again =). I have a platform game, the game character's behavior is "Scroll To". I would like to stay in character when the lower deck, the "Scroll To" not be centered vertically.

During the phase, the character is centered vertically, but when it gets too low on a platform, like the "Scroll To" did not follow my character. I would like to stay like this picture, Mario down, and only focuses on the vertical when the character goes: http://twscritic.files.wordpress.com/2011/06/super-mario-world-snes.jpg

Thank you =)
B
28
S
4
G
2
Posts: 30
Reputation: 4,871

Post » Sun Jan 29, 2012 2:12 am

The very same question was asked some time ago.
I made this capx to answer.Kyatric2012-01-29 02:16:31
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: 7,000
Reputation: 57,795

Post » Sun Jan 29, 2012 10:31 am

Kyatric Hello, this link helped and clarified a lot. Sorry repeat post something.

But I found the answer to what I want is a little different from the final result.

I want my character throughout the stage, where he is climbing the platforms, the "Scroll To" is centered on the coordinates Y

But when my character is in the lower phase, the "Scroll To", is no longer centralized. I guess it is something like this:

player > Scroll To
if player.y > 1000 >> Scroll to - 100px

Something like that, has given hope to understand.

Thank you.
B
28
S
4
G
2
Posts: 30
Reputation: 4,871

Post » Sun Jan 29, 2012 11:51 am

I got personal, I do not know if it's the best way out, but if anyone has a doubt, seeing as I did:



I say if the Y position of the character is smaller than 1000px, the "Scroll To" is equal to the character. If the character is too low, ie, the Y position is smaller than 1000px, the "Scroll To" is only the position X.

Hugs =)filippileonardo2012-01-29 11:54:02
B
28
S
4
G
2
Posts: 30
Reputation: 4,871

Post » Tue Jul 17, 2012 6:37 am

i had the same issue, and ur solution works great. thx filippileonardo!

btw... magi great game!
B
5
Posts: 1
Reputation: 418


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 21 guests