Pixel's Basic Cutscene Engine (V1.0 Release!)

Share and discuss custom LunaLua code and content packs for SMBX2.
Kitti and Minni
Bit
Bit
Posts: 63
Joined: Thu May 12, 2016 8:09 pm
Flair: Pixelated Perfection
Contact:

Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby Kitti and Minni » Tue Sep 07, 2021 11:05 am

BASIC CUTSCENE ENGINE (BCEngine)

Otherwise known as "Before Common Error" as a joke on BCE.

What is it?
Well, as someone who has very little experience with code, I decided that trying to wrangle with some complex outdated cutscene script shenanigans would be too difficult. So I made this, a small little script that works off of events. The BCEngine simply turns you invisible (using an invisible peach), and disables almost all buttons except down, for the duration of your cutscene.
Demonstrations
Spoiler: show
(V1.0 (Prototype debug screen))
Image
Image
Original Test (V0.0-V0.2):

Used with Textplus and Warp Transitions(V0.0-V0.2):
Download and Usage
Grab yourself a copy here:
https://drive.google.com/file/d/17hJCv1 ... sp=sharing (V0.1)
https://drive.google.com/file/d/1IM5fSx ... sp=sharing (V0.2)
https://drive.google.com/file/d/1-xO4HN ... sp=sharing(V1.0) (CURRENT)

Now then, to use this script, you only need a couple of things.
Then, In your levels Local script, put

Code: Select all

local BCEngineV1 = require "BCEngineV1"
Once that's done, put two events in the event section.
One named "Cutscene - Start" and one named "Cutscene - End"
Once Cutscene - Start is called, the code starts doing its stuff. The player won't be able to do really anything until Cutscene - End is called.

More instructions are enclosed in the LUA file.

Changelog:
9/12/21: V0.2 Release. No longer requires invisible peach.
10/5/21: V1.0 Release. Now with camera and cutscene progress mechanics!

Make sure to give credit, and have fun!

Last edited by Kitti and Minni on Tue Oct 05, 2021 3:10 pm, edited 5 times in total.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Pixel's Basic Cutscene Engine

Postby Enjl » Tue Sep 07, 2021 11:44 am

Instead of using an invisible peach, you could set the player.frame variable to -50 * player.direction, which is guaranteed to always be invisible, in onTickEnd.

Kitti and Minni
Bit
Bit
Posts: 63
Joined: Thu May 12, 2016 8:09 pm
Flair: Pixelated Perfection
Contact:

Re: Pixel's Basic Cutscene Engine

Postby Kitti and Minni » Tue Sep 07, 2021 11:49 am

Enjl wrote:
Tue Sep 07, 2021 11:44 am
Instead of using an invisible peach, you could set the player.frame variable to -50 * player.direction, which is guaranteed to always be invisible, in onTickEnd.
huh, well now there's something i can do for V0.2, assuming i can figure out how that works, thanks!

ShadowLabrys101
Bit
Bit
Posts: 71
Joined: Thu Jan 09, 2014 3:14 pm

Re: Pixel's Basic Cutscene Engine

Postby ShadowLabrys101 » Sat Sep 11, 2021 12:50 pm

Uhhhh, the link wants me to request access.

Kitti and Minni
Bit
Bit
Posts: 63
Joined: Thu May 12, 2016 8:09 pm
Flair: Pixelated Perfection
Contact:

Re: Pixel's Basic Cutscene Engine

Postby Kitti and Minni » Sun Sep 12, 2021 5:29 pm

ShadowLabrys101 wrote:
Sat Sep 11, 2021 12:50 pm
Uhhhh, the link wants me to request access.
oh crap i probably did something wrong with google drive hold on
alright it should be fixed now

PikaChris
Monty Mole
Monty Mole
Posts: 131
Joined: Mon Jan 06, 2014 9:51 pm
Flair: Moon Lord's Servant
Contact:

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby PikaChris » Sat Dec 04, 2021 12:24 pm

Hey. I wanted to use your cutscene engine for my episode, but I get this message. How do you fix this? I'm using X2 Beta 4.
Image

Kitti and Minni
Bit
Bit
Posts: 63
Joined: Thu May 12, 2016 8:09 pm
Flair: Pixelated Perfection
Contact:

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby Kitti and Minni » Sat Dec 04, 2021 3:22 pm

PikaChris wrote:
Sat Dec 04, 2021 12:24 pm
Hey. I wanted to use your cutscene engine for my episode, but I get this message. How do you fix this? I'm using X2 Beta 4.
Image
I
legitimately have no clue
you might try asking on the SMBX discord, but I don't know what this error is.

PikaChris
Monty Mole
Monty Mole
Posts: 131
Joined: Mon Jan 06, 2014 9:51 pm
Flair: Moon Lord's Servant
Contact:

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby PikaChris » Sun Dec 05, 2021 11:23 am

I just found out about an oversight while trying to apply this script to my episode's lua file. Oops.

Kitti and Minni
Bit
Bit
Posts: 63
Joined: Thu May 12, 2016 8:09 pm
Flair: Pixelated Perfection
Contact:

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby Kitti and Minni » Sun Dec 05, 2021 12:35 pm

PikaChris wrote:
Sun Dec 05, 2021 11:23 am
I just found out about an oversight while trying to apply this script to my episode's lua file. Oops.
ah, yeah
I should probably make an example level for the cutscene engine, now that im thinking about it

Torterra18
Goomba
Goomba
Posts: 2
Joined: Fri Feb 03, 2023 9:43 am
Pronouns: he/him

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby Torterra18 » Fri Feb 03, 2023 9:53 pm

Seems good, unfortunately, the latest version file seems broken.

MarioChallengerX2
Rex
Rex
Posts: 30
Joined: Sat Dec 31, 2022 4:34 pm
Pronouns: he/him

Re: Pixel's Basic Cutscene Engine (V1.0 Release!)

Postby MarioChallengerX2 » Sat Feb 04, 2023 8:37 pm

Torterra18 wrote:
Fri Feb 03, 2023 9:53 pm
Seems good, unfortunately, the latest version file seems broken.
Wdym? It still works.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests