[Question] Camera Fix?
- QuotientAB
- Posts: 7
- Joined: 15 Jun 2014, 07:48
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.
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
- Posts: 7
- Joined: 15 Jun 2014, 07:48
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.
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
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
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.
Especially if someone makes a level that's focused on leftwards-traveling.
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
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
see how the the environment is always moving even with little movement?
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.
Also vertical scrolling is center locked and it looks weird too.
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
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