General Help and Quick Questions

Need help with any SMBX game-related issues? Ask your questions here.
User avatar
Aero
Palom
Palom
Posts: 4639
Joined: Fri Mar 28, 2014 2:51 pm
Flair: Pirate economy
Chat Username: aero

General Help and Quick Questions

Postby Aero » Sat Feb 22, 2020 2:30 pm

This thread is for general help with using Super Mario Bros. X and asking quick questions. If you anticipate your question will take one or two replies, and doesn't deserve its own topic then this is the place to ask. For more technical questions feel free to make a new topic but please include screenshots, error logs, and/or your code if applicable.

The following resources are good references to check before posting: Also consider joining the SMBX Discord server and asking for help: https://discord.gg/S2eAAy6

CJK
Shy Guy
Shy Guy
Posts: 9
Joined: Thu Mar 05, 2020 8:52 pm

Re: General Help and Quick Questions

Postby CJK » Thu Mar 05, 2020 9:29 pm

I have an oddly specific question but one which could only warrant a few responses.

So I'm making levels that resembles those in SMW (although I'm also quite new to SMBX). To mimic the SMW experience, I referred to some lunalua code that makes the camera move similarly to the SMW camera (details of code: https://wohlsoft.ru/pgewiki/SMWcamera.lua). I'm also trying to zoom in the camera since the standard SMBX camera is much bigger than the one used for SMW. I added some extra code into the SMWcamera file copied from another thread in this forum to accomplish this.

Code: Select all

local handycam = require("handycam") handycam[1].zoom = 1.2
The problem is that when the camera zooms in, it either leaves the player behind or obscures the very bottom of the section. If I were to place lava at the bottom of the level, I wouldn't be able to see it when playing.

My question is: How do I move a zoomed camera downwards (and leftwards since the camera never shows the very left two blocks of the section) in Lua?

The full line of code I copied is super long so I'll only post it if asked.

Thanks!

User avatar
Chilly14
Bit
Bit
Posts: 143
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Current Project: Lots

Re: General Help and Quick Questions

Postby Chilly14 » Sat Apr 04, 2020 1:26 pm

Am I allowed to create custom SMBX2-based builds? I'm thinking of making a new game called Super Mario Bros. Y.
Discord username: Chilly Bean BAM!#8857
Image
For the love of god, please use an adblocker (I prefer uBlock Origin) when using MediaFire to download my stuff.
Check out my levels!
Chilly14's Graphics Pack
Chilly's NPCs
screenRotate.lua
venusFireTrapPlus.lua
I support:
Spoiler: show
Image
Image

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

Re: General Help and Quick Questions

Postby Enjl » Sat Apr 04, 2020 5:53 pm

Chilly14 wrote:
Sat Apr 04, 2020 1:26 pm
Am I allowed to create custom SMBX2-based builds? I'm thinking of making a new game called Super Mario Bros. Y.
Editing a hack of a fan-engine won't produce a new game. At best, it will produce a flavour of that fan-engine. Trying to create a new standard for the community will just ensure that nobody wants to touch it because there are better alternatives around. If you know some lua (which you'd need for smbx2 development as per your question), you could get the results you're probably expecting (feature scripting, instead of system writing, maintenance, and troubleshooting which is the bulk of development in SMBX2/LunaLua, as well as any other engine) much faster by simply creating scripts for SMBX2 and publishing them in the LunaLua forum.

That said, all of SMBX2 is open source via the PGE and LunaLua repositories, as well as the SMBX2 releases. So knock yourself out if you wanna compile them yourself.
Ideas are useless if you can't make them real.
Image

User avatar
Ninji2701
Bob-omb
Bob-omb
Posts: 37
Joined: Fri Mar 27, 2020 10:12 pm
Current Project: Mario's Quest

Re: General Help and Quick Questions

Postby Ninji2701 » Thu Apr 09, 2020 11:51 am

I was wondering how to make sideways one‐way walls, if that was possible. Downward one‐ways (you can move top to bottom, but not bottom to top) would also be convenient, but not necessary.
<p>Does this support HTML markup?</p>
<!--It probably doesn't-->

Mʏ Pʀᴏᴊᴇᴄᴛ
Image

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

Re: General Help and Quick Questions

Postby Enjl » Thu Apr 09, 2020 11:53 am

Ninji2701 wrote:
Thu Apr 09, 2020 11:51 am
I was wondering how to make sideways one‐way walls, if that was possible. Downward one‐ways (you can move top to bottom, but not bottom to top) would also be convenient, but not necessary.
As for SMBX2, making them work for players and enemies simultaneously is night impossible currently, because making them depends on making the wall solid or nonsolid depending on the "target"'s position. There may be ways to patch it into basegame in the future, but it's not a priority.
Ideas are useless if you can't make them real.
Image

User avatar
Cedur
Toad
Toad
Posts: 6483
Joined: Tue Jun 28, 2016 10:14 am

Re: General Help and Quick Questions

Postby Cedur » Thu Apr 09, 2020 12:46 pm

I have no idea what you mean, could you pls elaborate a bit more?

(at first I thought of simple instant-warp-transitions between sections, but Enjl's reply suggests otherwise)
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

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

Re: General Help and Quick Questions

Postby Enjl » Thu Apr 09, 2020 12:47 pm

Cedur wrote:
Thu Apr 09, 2020 12:46 pm
I have no idea what you mean, could you pls elaborate a bit more?

(at first I thought of simple instant-warp-transitions between sections, but Enjl's reply suggests otherwise)
https://www.mariowiki.com/One-Way_Wall
Ideas are useless if you can't make them real.
Image

User avatar
Cedur
Toad
Toad
Posts: 6483
Joined: Tue Jun 28, 2016 10:14 am

Re: General Help and Quick Questions

Postby Cedur » Thu Apr 09, 2020 12:50 pm

Enjl wrote:
Thu Apr 09, 2020 12:47 pm
Cedur wrote:
Thu Apr 09, 2020 12:46 pm
I have no idea what you mean, could you pls elaborate a bit more?

(at first I thought of simple instant-warp-transitions between sections, but Enjl's reply suggests otherwise)
https://www.mariowiki.com/One-Way_Wall

ah, these things! I always wondered what these are. Thanks!
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

User avatar
Ninji2701
Bob-omb
Bob-omb
Posts: 37
Joined: Fri Mar 27, 2020 10:12 pm
Current Project: Mario's Quest

Re: General Help and Quick Questions

Postby Ninji2701 » Thu Apr 09, 2020 1:12 pm

Enjl wrote:
Thu Apr 09, 2020 12:47 pm
https://www.mariowiki.com/One-Way_Wall
Yes, this is what is was referring to as one‐way walls.
<p>Does this support HTML markup?</p>
<!--It probably doesn't-->

Mʏ Pʀᴏᴊᴇᴄᴛ
Image

User avatar
Ninji2701
Bob-omb
Bob-omb
Posts: 37
Joined: Fri Mar 27, 2020 10:12 pm
Current Project: Mario's Quest

Auto-Clear Levels

Postby Ninji2701 » Fri Apr 17, 2020 12:55 pm

Is there any way that I can automatically trigger a level's exit as soon as it is visible? Lua is okay, I've worked with it before.
<p>Does this support HTML markup?</p>
<!--It probably doesn't-->

Mʏ Pʀᴏᴊᴇᴄᴛ
Image

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

Re: General Help and Quick Questions

Postby Enjl » Fri Apr 17, 2020 1:01 pm

Set winstate with Level.winState(state) https://wohlsoft.ru/pgewiki/Level_(class)
Ideas are useless if you can't make them real.
Image

User avatar
Ninji2701
Bob-omb
Bob-omb
Posts: 37
Joined: Fri Mar 27, 2020 10:12 pm
Current Project: Mario's Quest

Re: Auto-Clear Levels

Postby Ninji2701 » Fri Apr 17, 2020 1:04 pm

Ninji2701 wrote:
Fri Apr 17, 2020 12:55 pm
Is there any way that I can automatically trigger a level's exit as soon as it is visible?
Should clarify that I want it to be cleared as soon as it is visible on the world map.
<p>Does this support HTML markup?</p>
<!--It probably doesn't-->

Mʏ Pʀᴏᴊᴇᴄᴛ
Image

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

Re: Auto-Clear Levels

Postby Enjl » Fri Apr 17, 2020 1:06 pm

Ninji2701 wrote:
Fri Apr 17, 2020 1:04 pm
Ninji2701 wrote:
Fri Apr 17, 2020 12:55 pm
Is there any way that I can automatically trigger a level's exit as soon as it is visible?
Should clarify that I want it to be cleared as soon as it is visible on the world map.
Put a path tile behind the level tile.
Ideas are useless if you can't make them real.
Image

User avatar
Ninji2701
Bob-omb
Bob-omb
Posts: 37
Joined: Fri Mar 27, 2020 10:12 pm
Current Project: Mario's Quest

Re: Auto-Clear Levels

Postby Ninji2701 » Fri Apr 17, 2020 1:07 pm

Enjl wrote:
Fri Apr 17, 2020 1:06 pm
Ninji2701 wrote:
Fri Apr 17, 2020 1:04 pm
Ninji2701 wrote:
Fri Apr 17, 2020 12:55 pm
Is there any way that I can automatically trigger a level's exit as soon as it is visible?
Should clarify that I want it to be cleared as soon as it is visible on the world map.
Put a path tile behind the level tile.
I need certain directions to be unlocked while keeping other directions locked.
<p>Does this support HTML markup?</p>
<!--It probably doesn't-->

Mʏ Pʀᴏᴊᴇᴄᴛ
Image

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

Re: General Help and Quick Questions

Postby Enjl » Fri Apr 17, 2020 1:09 pm

Then, no. Redesign your map to not need such a state. The game only checks the player's surrounding tiles when returning from a level with a specific winstate.
Ideas are useless if you can't make them real.
Image

User avatar
Pluixx
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon May 14, 2018 11:26 am
Chat Username: Pluixx

Re: General Help and Quick Questions

Postby Pluixx » Wed Apr 22, 2020 8:25 am

Im considering on downloading SMBX2 because of the fact it just has more assets and the like, and because ive been using a version of SMBX that has been downloading onto my laptop around one and a half year ago, are there any specific 'issues' I can expect with pre-existing episodes and custom assets?
Aka, custom graphics, NPC text files, etc.

User avatar
Cedur
Toad
Toad
Posts: 6483
Joined: Tue Jun 28, 2016 10:14 am

Re: General Help and Quick Questions

Postby Cedur » Wed Apr 22, 2020 8:40 am

If you're talking about backwards compatibility with 1.3.0.1 ("old SMBX", often referred as "legacy SMBX"), then there are no issues.
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

Human_Goomba
Shy Guy
Shy Guy
Posts: 8
Joined: Sun Jun 21, 2020 12:35 pm
Flair: (Actually Wario)
Chat Username: Human_Goomba

Re: General Help and Quick Questions

Postby Human_Goomba » Thu Jun 25, 2020 2:52 pm

Recently been making levels using the SMBX 2.0 Beta 4 level editor, and for a while I didn't get any errors. However just today I was building a level, then when I went to test it, the editor crashed and a crash note appeared (if you get what I mean it has a picture of a beat-up cat, yea thats weird).

But that's not the main issue. I closed the editor and re-opened it. The editor made a backup of the level I was working on even though I hadn't saved it yet, so I saved it afterwards to make sure I don't lose it just in case. The problem is that now, for some reason, the level tester doesn't work. When I try to test a level, the level test program appears. The whole "buy nintendo switch to suport nintendo bla bla" message appeared, but this time the usual loading icon wouldn't appear. The screen would stay all black, completly blank, and after a few seconds, close itself. I tried closing and re-opening the editor again, only to get the same issue. I tried testing another level, but it happened again. I have a feeling I'm not the only one that has got this weird bug at least once. I was wondering if anyone knows more about this bug in detail and could help me fix my level tester.

EDIT: I can play levels from worlds just fine, it's just the level tester from the editor that doesn't work

User avatar
SparrowWithASword
Koopa Troopa
Koopa Troopa
Posts: 26
Joined: Fri Jan 10, 2020 5:05 pm
Flair: I like birds
Current Project: Another generic SMBX episode (yes that's the name of the episode)
Chat Username: bird bowser

Re: General Help and Quick Questions

Postby SparrowWithASword » Thu Jul 16, 2020 4:32 pm

I began work on an episode a few months ago using 1.3, but now I have decided to use SMBX2 instead to work on SMBX stuff. Can I transition the episode I was working on from 1.3 to SMBX2.

It's honestly kind of a dumb question, but I want to make sure it will be fine.
Don't be afraid to make the switch to SMBX2, and don't feel pressured if you wish to not do it. Take my word for it, for I am just another casual user.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 3 guests