[Question] Camera Fix?

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
QuotientAB
Posts: 7
Joined: 15 Jun 2014, 07:48

Post » 19 Apr 2015, 03:05

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.

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 19 Apr 2015, 03:14

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.

User avatar
QuotientAB
Posts: 7
Joined: 15 Jun 2014, 07:48

Post » 19 Apr 2015, 03:40

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.

User avatar
Superjustinbros
Posts: 2119
Joined: 29 Mar 2012, 20:39
Contact:

Post » 19 Apr 2015, 04:56

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.

User avatar
MM102
Posts: 970
Joined: 11 May 2012, 06:08
Contact:

Post » 19 Apr 2015, 19:34

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

User avatar
MM102
Posts: 970
Joined: 11 May 2012, 06:08
Contact:

Post » 20 Apr 2015, 00:40

Image
Image
also I've made two gifs demonstrating this effect
see how the the environment is always moving even with little movement?

User avatar
HansAgain
Posts: 1111
Joined: 03 Feb 2012, 18:51
Contact:

Post » 20 Apr 2015, 05:11

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.

User avatar
DerickFabro
Posts: 80
Joined: 24 Nov 2013, 22:29

Post » 25 Apr 2015, 23:47

something like that?

Image

User avatar
Mr.Q.Marx?
Posts: 849
Joined: 15 May 2012, 18:35

Post » 07 May 2015, 19:11

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

Post Reply