Page 1 of 1

[Question] Camera Fix?

Posted: 19 Apr 2015, 03:05
by QuotientAB
I'm not sure if this topic should go in this subforum, but has anyone made a fix for the scrolling camera? Mario is never centered during scrolling.

Re: [Question] Camera Fix?

Posted: 19 Apr 2015, 03:14
by Sky
This is a conscious design choice to be true to the original SMB. A "firstpersonview" variable exists in the code that completely centers the camera, although I'm not sure how effective it is.

Re: [Question] Camera Fix?

Posted: 19 Apr 2015, 03:40
by QuotientAB
This actually differentiates it from the original Super Mario Bros.
I'm talking about how, when the camera scrolls in either direction, Mario isn't centered. For example, when scrolling right, Mario is off-center and close to the right edge of the screen. This effect is stronger when moving left.

Re: [Question] Camera Fix?

Posted: 19 Apr 2015, 04:56
by Superjustinbros
For single player I'd prefer Mario to be more centered, when moving both right and left.
Especially if someone makes a level that's focused on leftwards-traveling.

Re: [Question] Camera Fix?

Posted: 19 Apr 2015, 19:34
by MM102
while yes, when moving right the camera does seem to start to scroll farther to the right, this may be done on purpose.
if the screen were always centered moving back in forth in one place will move around the camera lot which can cause motion sickness. It looks much nicer if the camera stays still when moving back and forth.
and yes while someone can't make levels that travel leftwards without camera problems, remember the original mario didn't allow backtracking of any sort so this might have been done to stay truer to the original aswell

Re: [Question] Camera Fix?

Posted: 20 Apr 2015, 00:40
by MM102
Image
Image
also I've made two gifs demonstrating this effect
see how the the environment is always moving even with little movement?

Re: [Question] Camera Fix?

Posted: 20 Apr 2015, 05:11
by HansAgain
At least the points where the camera starts following mario should be more centered so it doesn't look weird.
Also vertical scrolling is center locked and it looks weird too.

Re: [Question] Camera Fix?

Posted: 25 Apr 2015, 23:47
by DerickFabro
something like that?

Image

Re: [Question] Camera Fix?

Posted: 07 May 2015, 19:11
by Mr.Q.Marx?
variables.lua Lines 464 to 467

Code: Select all

scrollingstart = width/2 --when the scrolling begins to set in (Both of these take the player who is the farthest on the left)
scrollingcomplete = width/2 --when the scrolling will be as fast as mario can run
scrollingleftstart = width/2 --See above, but for scrolling left, and it takes the player on the right-estest.
scrollingleftcomplete = width/2