Page 1 of 1

betterAutoscroll.lua UPDATE 2.0

Posted: Wed Nov 06, 2024 7:47 pm
by Davice


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

NOW SUPPORTS MULTIPLE SECTIONS AND CHECKPOINTS

Download (Tutorial included):
https://workupload.com/file/Qrw7AXtkDjt

Re: betterAutoscroll.lua

Posted: Fri Nov 08, 2024 1:01 pm
by Pixelated_Perfection
oh hell yeah

Re: betterAutoscroll.lua

Posted: Sat Nov 16, 2024 3:52 pm
by MarioChallengerX2
I just realized there's another problem with this library. Moving left makes Mario die for some reason.

Re: betterAutoscroll.lua

Posted: Thu Nov 21, 2024 10:50 am
by Davice
MarioChallengerX2 wrote:
Sat Nov 16, 2024 3:52 pm
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.

Re: betterAutoscroll.lua

Posted: Thu Nov 21, 2024 12:48 pm
by Trilogy
Davice wrote:
Wed Nov 06, 2024 7:47 pm


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)

Download (Tutorial included):
Finnaly, i dont have to work with choppy autoscroll nor i have to code! Thank you very much, Davice!

Re: betterAutoscroll.lua

Posted: Mon Nov 25, 2024 3:45 am
by Alucard648
Not useable at all until Multi-section and checkpoints support are done.

Re: betterAutoscroll.lua Error

Posted: Sun Jan 05, 2025 9:12 pm
by Dura785
There is an error that betterSMWCamera.lua is missing
Image
You know what it is?

Re: betterAutoscroll.lua

Posted: Fri Jan 10, 2025 9:09 am
by Ibaka
thats cool

Re: betterAutoscroll.lua Error

Posted: Sat Jan 11, 2025 6:48 pm
by Davice
Dura785 wrote:
Sun Jan 05, 2025 9:12 pm
There is an error that betterSMWCamera.lua is missing
Image
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.
Image

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.