An alternative to the classic autoscroll.lua with various advantages:
- Smoother Scrolling
- Smooth Change of Speed and Direction
- Controlling Blocks you can place around in your Level to Control Scrolling according to your will
I just realized there's another problem with this library. Moving left makes Mario die for some reason.
This actually was my intention. I wanted to mimic the autoscroll of Super Mario 3d World where the player also dies when he goes offscreen. Removing the kill player function out of the script will remove this feature.
An alternative to the classic autoscroll.lua with various advantages:
- Smoother Scrolling
- Smooth Change of Speed and Direction
- Controlling Blocks you can place around in your Level to Control Scrolling according to your will
Known Issues:
- Currently works at one Section only
- Checkpoints doesn't work at this moment
(both issues will be fixed soon)
There is an error that betterSMWCamera.lua is missing
You know what it is?
Oh thats just from the example level. In my episode I use a custom camera logic and I had to deactivate it for this specific level. Just go into the luna.lua of the level and remove every line of code which contains "betterSMWCamera"
Re: betterAutoscroll.lua UPDATE 2.0
Posted: Sun Jul 06, 2025 3:04 pm
by Bowl_of_Oatmeal
When disabling auto scrolling in a section using this function...
function onSectionChange(id, player)
if id == 1 then
betterAutoscroll.enabled = false
end
end
The camera doesn't move even though the section is horizontally large.
In this image, Mario should be in the center of the screen, but he's at the end which means the camera isn't moving like it should.
This is the correct section as using the autoscroll objects doesn't move the camera.
When disabling auto scrolling in a section using this function...
function onSectionChange(id, player)
if id == 1 then
betterAutoscroll.enabled = false
end
end
The camera doesn't move even though the section is horizontally large.
In this image, Mario should be in the center of the screen, but he's at the end which means the camera isn't moving like it should.
This is the correct section as using the autoscroll objects doesn't move the camera.