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.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9708
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Pixel's Basic Cutscene Engine

Postby Emral » 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: 73
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

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

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

Postby Lunar Chris » 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.

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

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

Postby Lunar Chris » 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
Koopa
Koopa
Posts: 19
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
Bit
Bit
Posts: 77
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.

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

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

Postby Torterra18 » Sun Feb 05, 2023 1:18 pm

MarioChallengerX2 wrote:
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.
But when I download the file, it says that is corrupted.

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

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

Postby MarioChallengerX2 » Sun Feb 05, 2023 9:34 pm

Torterra18 wrote:
Sun Feb 05, 2023 1:18 pm
MarioChallengerX2 wrote:
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.
But when I download the file, it says that is corrupted.
Well, It's not corrupted for me. Tell me what exactly you are doing to download this file

Pixelated_Perfection
Koopa
Koopa
Posts: 15
Joined: Fri Feb 25, 2022 1:23 pm
Pronouns: He/They

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

Postby Pixelated_Perfection » Tue Feb 07, 2023 8:01 am

If you're still having trouble downloading it I can just send you the file myself.

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

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

Postby Torterra18 » Fri Feb 10, 2023 2:33 pm

MarioChallengerX2 wrote:
Sun Feb 05, 2023 9:34 pm
Torterra18 wrote:
Sun Feb 05, 2023 1:18 pm
MarioChallengerX2 wrote:
Sat Feb 04, 2023 8:37 pm


Wdym? It still works.
But when I download the file, it says that is corrupted.
Well, It's not corrupted for me. Tell me what exactly you are doing to download this file
Well, I downloaded it on mobile, clicked on the link, told me to choose a Google Drive account, then told me which app should I use to open the file, and the file seemed empty!

deice
Volcano Lotus
Volcano Lotus
Posts: 538
Joined: Fri Jul 23, 2021 7:35 am

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

Postby deice » Fri Feb 10, 2023 3:01 pm

Torterra18 wrote:
Fri Feb 10, 2023 2:33 pm
Well, I downloaded it on mobile, clicked on the link, told me to choose a Google Drive account, then told me which app should I use to open the file, and the file seemed empty!
have you tried downloading it onto a pc? smbx2 doesn't exactly work on mobile devices.

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

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

Postby Torterra18 » Fri Feb 10, 2023 3:03 pm

deice wrote:
Fri Feb 10, 2023 3:01 pm
Torterra18 wrote:
Fri Feb 10, 2023 2:33 pm
Well, I downloaded it on mobile, clicked on the link, told me to choose a Google Drive account, then told me which app should I use to open the file, and the file seemed empty!
have you tried downloading it onto a pc? smbx2 doesn't exactly work on mobile devices.
I've already did it, and it worked, anyway, thx for help.

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

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

Postby Torterra18 » Mon Feb 13, 2023 6:42 pm

Man, I added the two events as said, but for some reason, the camera gets stuck in a single position.
What would be causing the issue?

Pixelated_Perfection
Koopa
Koopa
Posts: 15
Joined: Fri Feb 25, 2022 1:23 pm
Pronouns: He/They

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

Postby Pixelated_Perfection » Tue Feb 14, 2023 10:11 am

Torterra18 wrote:
Mon Feb 13, 2023 6:42 pm
Man, I added the two events as said, but for some reason, the camera gets stuck in a single position.
What would be causing the issue?
could you elaborate a bit on that


Return to “LunaLua”

Who is online

Users browsing this forum: DeviousQuacks23 and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari