scrollCam.lua

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Yoshi021
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 691
Joined: Thu Jan 21, 2016 9:06 pm
Flair: :)
Pronouns: He/Him

scrollCam.lua

Postby Yoshi021 » Tue May 16, 2017 1:22 am

Here is a small API that adds a scrolling effect to the camera!

Image

Documentation and Download:
http://wohlsoft.ru/pgewiki/ScrollCam.lua

aero
Palom
Palom
Posts: 4787
Joined: Fri Mar 28, 2014 2:51 pm

Re: scrollCam.lua

Postby aero » Tue May 16, 2017 3:12 am

In the editor it starts from where the camera was left instead of starting up on the player. Something worth mentioning I guess.

Alucard648
Flurry
Flurry
Posts: 176
Joined: Sun Aug 16, 2015 3:45 am

Re: scrollCam.lua

Postby Alucard648 » Tue May 16, 2017 5:13 am

Interesting script. I might use it for my Alamut Palace level.
Tip: It`s best to have section dimensions to be a multiple of screen size: 800 for X axis and 600 for Y axis.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: scrollCam.lua

Postby MECHDRAGON777 » Sat May 20, 2017 12:11 am

If you can make the scroll transition happen at specific points, this would be perfect for metroid.

Snessy the duck
Mouser
Mouser
Posts: 2699
Joined: Sat Sep 20, 2014 6:04 am

Re: scrollCam.lua

Postby Snessy the duck » Sat May 20, 2017 9:22 am

MECHDRAGON777 wrote:If you can make the scroll transition happen at specific points, this would be perfect for metroid.
Or Megaman!

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: scrollCam.lua

Postby MECHDRAGON777 » Sat May 20, 2017 1:26 pm

Snessy the duck wrote:
MECHDRAGON777 wrote:If you can make the scroll transition happen at specific points, this would be perfect for metroid.
Or Megaman!
I had a feeling someone would quoteme to add that.

Radiance
2025 Egg Hunter
2025 Egg Hunter
Posts: 1350
Joined: Thu Dec 10, 2015 7:53 am
Pronouns: he/him

Re: scrollCam.lua

Postby Radiance » Sun May 21, 2017 1:17 am

Is it also applicable in world maps? This would work well for LoZ maps if that's applicable.

antonioflowers056
Monty Mole
Monty Mole
Posts: 100
Joined: Mon Jul 20, 2015 5:14 pm

Re: scrollCam.lua

Postby antonioflowers056 » Tue May 23, 2017 1:39 pm

This is perfect for Super Mario Bros. 2/Super Mario Advance gameplay.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: scrollCam.lua

Postby MECHDRAGON777 » Thu May 25, 2017 10:07 am

antonioflowers056 wrote:This is perfect for Super Mario Bros. 2/Super Mario Advance gameplay.
With enough tweaks,I believe this API is useful for a lot of things.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari