Page 1 of 1

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

Posted: Tue Sep 07, 2021 11:05 am
by Kitti and Minni

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!


Re: Pixel's Basic Cutscene Engine

Posted: Tue Sep 07, 2021 11:44 am
by Emral
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.

Re: Pixel's Basic Cutscene Engine

Posted: Tue Sep 07, 2021 11:49 am
by Kitti and Minni
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!

Re: Pixel's Basic Cutscene Engine

Posted: Sat Sep 11, 2021 12:50 pm
by ShadowLabrys101
Uhhhh, the link wants me to request access.

Re: Pixel's Basic Cutscene Engine

Posted: Sun Sep 12, 2021 5:29 pm
by Kitti and Minni
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

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

Posted: Sat Dec 04, 2021 12:24 pm
by Lunar Chris
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

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

Posted: Sat Dec 04, 2021 3:22 pm
by Kitti and Minni
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.

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

Posted: Sun Dec 05, 2021 11:23 am
by Lunar Chris
I just found out about an oversight while trying to apply this script to my episode's lua file. Oops.

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

Posted: Sun Dec 05, 2021 12:35 pm
by Kitti and Minni
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

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

Posted: Fri Feb 03, 2023 9:53 pm
by Torterra18
Seems good, unfortunately, the latest version file seems broken.

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

Posted: Sat Feb 04, 2023 8:37 pm
by MarioChallengerX2
Torterra18 wrote:
Fri Feb 03, 2023 9:53 pm
Seems good, unfortunately, the latest version file seems broken.
Wdym? It still works.

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

Posted: Sun Feb 05, 2023 1:18 pm
by Torterra18
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.

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

Posted: Sun Feb 05, 2023 9:34 pm
by MarioChallengerX2
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

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

Posted: Tue Feb 07, 2023 8:01 am
by Pixelated_Perfection
If you're still having trouble downloading it I can just send you the file myself.

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

Posted: Fri Feb 10, 2023 2:33 pm
by Torterra18
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!

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

Posted: Fri Feb 10, 2023 3:01 pm
by deice
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.

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

Posted: Fri Feb 10, 2023 3:03 pm
by Torterra18
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.

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

Posted: Mon Feb 13, 2023 6:42 pm
by Torterra18
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?

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

Posted: Tue Feb 14, 2023 10:11 am
by Pixelated_Perfection
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