[Question] Camera Fix?

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

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.

WillWare
User avatar
Posts: 1216
Joined: 08 Mar 2012, 04:35
Reputation: 264
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.

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

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.

Superjustinbros
User avatar
Posts: 2101
Joined: 29 Mar 2012, 20:39
Reputation: 132
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.

MM102
User avatar
Posts: 1015
Joined: 11 May 2012, 06:08
Reputation: 497

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

MM102
User avatar
Posts: 1015
Joined: 11 May 2012, 06:08
Reputation: 497

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?

HansAgain
User avatar
Posts: 1133
Joined: 03 Feb 2012, 18:51
Reputation: 265
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.

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

Post » 25 Apr 2015, 23:47

something like that?

Image

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

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


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 2 guests