Locking a level to one character

Need help with any SMBX game-related issues? Ask your questions here.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on-topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Yey
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon May 29, 2017 12:28 pm
Chat Username: .

Locking a level to one character

Postby Yey » Sun Jan 14, 2018 9:49 am

So, I have Link set as as the only playable character in my episode (by locking every character but him in the world map), but if it's possible, I'm looking to make Mario playable in one level. Is there any possible way I can, y'know, make it so the game forces you to play as one individual character for only one level?

User avatar
Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1070
Joined: Mon Jun 19, 2017 11:35 am
Current Project: Mario's Kingdom Adventure (Now part of the Novaverse!)
Chat Username: Taycamgame
Contact:

Re: Locking a level to one character

Postby Taycamgame » Sun Jan 14, 2018 9:50 am

What version of SMBX?
Official Level Reviewer (My Gold Yoshi Egg rank replaced the level reviewer icon, but i am still a level reviewer).
Check out my Episodes:
ImageImage
Check out the World Map Service that i host:
viewtopic.php?p=316733#p316733
Check out the projects i support:
Spoiler: show
ImageImageImage
Image
Image
Quotes: show
xDestroy wrote:
Wellington Games wrote:Taycamgame, I know how to take screenshots in the SMBX.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Sun Jan 14, 2018 9:54 am

i guess you could force players to hit a Character switch block at the start of the level, so they cannot progress unless they hit the Character Switch block, to change them to mario for that level and then make them turn back into link at the end of the level
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
PixelPest
Edward
Edward
Posts: 6592
Joined: Sun Jul 12, 2015 5:38 pm
Current Project: Boom Boom Evolution
Location: Canada, Eh?
Chat Username: PixelPest
Contact:

Re: Locking a level to one character

Postby PixelPest » Sun Jan 14, 2018 10:41 am

As OlieGameTV said, you can place the player start position inside a rectangle of player blocks with a player switch block. The player blocks will disappear when you hit the corresponding player switch block and will only allow a certain character to pass through. If using SMBX2, you can also create a lunadll.lua file in your level's custom graphics folder and in it type:

Code: Select all

function onStart()
    player.character = CHARACTER_MARIO;
end 
This is just a simple piece of code for a player filter that you can use in SMBX2 to make the player Mario at the beginning of the level

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Sun Jan 14, 2018 11:28 am

Image
Image
Image
i mean a system like this, trapped in a box at the top or middle of the screen, and you can't progress, until you jump into the Mario Character switch block, it should work even when you have only one character allowed, but someone will have to test that
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
Westretroman
Koopa Shell
Koopa Shell
Posts: 606
Joined: Tue Mar 29, 2016 6:50 pm

Re: Locking a level to one character

Postby Westretroman » Sun Jan 14, 2018 11:45 am

OlieGamerTV wrote:Image
Image
Image
i mean a system like this, trapped in a box at the top or middle of the screen, and you can't progress, until you jump into the Mario Character switch block, it should work even when you have only one character allowed, but someone will have to test that
I don't think this method is needed since Lunalua does it quicker, but do what you want.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Sun Jan 14, 2018 11:47 am

Westretroman wrote:
OlieGamerTV wrote:Image
Image
Image
i mean a system like this, trapped in a box at the top or middle of the screen, and you can't progress, until you jump into the Mario Character switch block, it should work even when you have only one character allowed, but someone will have to test that
I don't think this method is needed since Lunalua does it quicker, but do what you want.
its still nice to note this method, just in case
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

Yey
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon May 29, 2017 12:28 pm
Chat Username: .

Re: Locking a level to one character

Postby Yey » Sun Jan 14, 2018 5:22 pm

Taycamgame wrote:What version of SMBX?
SMBX 2.0.

And also, thanks for the suggestions, everyone! I'll try 'em later tonight.

User avatar
8lue Storm
Ripper II
Ripper II
Posts: 338
Joined: Thu Jan 18, 2018 9:53 am
Current Project: Many, MANY stuff
Location: Brazil
Chat Username: 8luestorm

Re: Locking a level to one character

Postby 8lue Storm » Thu Jan 18, 2018 10:05 am

Also, if you don't want the barrier to be cheated through, make the blockade of mario blocks under the player, just like OlieGamerTV. Because if someone is smart enough, they can cheat through the blockade if it's placed veritcally...
Open to graphic requests!
Check out my project:
Spoiler: show
Image
Lovely image by ADMAndrew!
I'm participating of I'm here. I always was.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Thu Jan 18, 2018 12:15 pm

8lue Storm wrote:Also, if you don't want the barrier to be cheated through, make the blockade of mario blocks under the player, just like OlieGamerTV. Because if someone is smart enough, they can cheat through the blockade if it's placed veritcally...
seriously? how can someone cheat through it if its placed vertically?
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
PixelPest
Edward
Edward
Posts: 6592
Joined: Sun Jul 12, 2015 5:38 pm
Current Project: Boom Boom Evolution
Location: Canada, Eh?
Chat Username: PixelPest
Contact:

Re: Locking a level to one character

Postby PixelPest » Thu Jan 18, 2018 1:36 pm

OlieGamerTV wrote:
8lue Storm wrote:Also, if you don't want the barrier to be cheated through, make the blockade of mario blocks under the player, just like OlieGamerTV. Because if someone is smart enough, they can cheat through the blockade if it's placed veritcally...
seriously? how can someone cheat through it if its placed vertically?
The "shadowstar" cheat. However, there's no need to compensate for cheats

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Thu Jan 18, 2018 3:56 pm

PixelPest wrote:
OlieGamerTV wrote:
8lue Storm wrote:Also, if you don't want the barrier to be cheated through, make the blockade of mario blocks under the player, just like OlieGamerTV. Because if someone is smart enough, they can cheat through the blockade if it's placed veritcally...
seriously? how can someone cheat through it if its placed vertically?
The "shadowstar" cheat. However, there's no need to compensate for cheats
ah, right, forgot about that cheat, The "Shadow Star Image" Cheat makes the game extremely easy, its cool, but it does make it hard for players using that cheat, if the background is completely black
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
8lue Storm
Ripper II
Ripper II
Posts: 338
Joined: Thu Jan 18, 2018 9:53 am
Current Project: Many, MANY stuff
Location: Brazil
Chat Username: 8luestorm

Re: Locking a level to one character

Postby 8lue Storm » Thu Jan 18, 2018 4:08 pm

PixelPest wrote:
OlieGamerTV wrote:
8lue Storm wrote:Also, if you don't want the barrier to be cheated through, make the blockade of mario blocks under the player, just like OlieGamerTV. Because if someone is smart enough, they can cheat through the blockade if it's placed veritcally...
seriously? how can someone cheat through it if its placed vertically?
The "shadowstar" cheat. However, there's no need to compensate for cheats
Usually, if I want to block something off the player at all costs until he/she can unlock it, I make a cheat-proof barrier, which, in my opinion, makes the player have the gameplay the creator wanted...
Open to graphic requests!
Check out my project:
Spoiler: show
Image
Lovely image by ADMAndrew!
I'm participating of I'm here. I always was.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Thu Jan 18, 2018 6:01 pm

8lue Storm wrote:
PixelPest wrote:
OlieGamerTV wrote: seriously? how can someone cheat through it if its placed vertically?
The "shadowstar" cheat. However, there's no need to compensate for cheats
Usually, if I want to block something off the player at all costs until he/she can unlock it, I make a cheat-proof barrier, which, in my opinion, makes the player have the gameplay the creator wanted...
instant kill blocks in 2.0? yes, thats a thing, would you be able to go through that with shadowstar?
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
8lue Storm
Ripper II
Ripper II
Posts: 338
Joined: Thu Jan 18, 2018 9:53 am
Current Project: Many, MANY stuff
Location: Brazil
Chat Username: 8luestorm

Re: Locking a level to one character

Postby 8lue Storm » Thu Jan 18, 2018 6:09 pm

OlieGamerTV wrote:
8lue Storm wrote:
PixelPest wrote: The "shadowstar" cheat. However, there's no need to compensate for cheats
Usually, if I want to block something off the player at all costs until he/she can unlock it, I make a cheat-proof barrier, which, in my opinion, makes the player have the gameplay the creator wanted...
instant kill blocks in 2.0? yes, thats a thing, would you be able to go through that with shadowstar?
Man! I have never thought of this before!
But i think donthurtme and shadowstar could make it through. However, I don't understand what you mean by "Instant kill blocks", are they like, lava blocks or such? (I use 1.3.0.1 sorry).
Open to graphic requests!
Check out my project:
Spoiler: show
Image
Lovely image by ADMAndrew!
I'm participating of I'm here. I always was.

User avatar
bossedit8
Toad
Toad
Posts: 6826
Joined: Fri Dec 20, 2013 12:35 pm
Current Project: Airship Attack 2
Location: Germany (Deutschland)
Chat Username: <3 bossedit8 <3
Contact:

Re: Locking a level to one character

Postby bossedit8 » Thu Jan 18, 2018 6:44 pm

Killer blocks are basically blocks that will kill the player but not the enemies... it's basically lava but more deadly for the player rather than the enemies.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Thu Jan 18, 2018 7:02 pm

8lue Storm wrote:
OlieGamerTV wrote:
8lue Storm wrote: Usually, if I want to block something off the player at all costs until he/she can unlock it, I make a cheat-proof barrier, which, in my opinion, makes the player have the gameplay the creator wanted...
instant kill blocks in 2.0? yes, thats a thing, would you be able to go through that with shadowstar?
Man! I have never thought of this before!
But i think donthurtme and shadowstar could make it through. However, I don't understand what you mean by "Instant kill blocks", are they like, lava blocks or such? (I use 1.3.0.1 sorry).
Image
i mean those things i placed around the spawn box, i tried doing shadowstar and donthurtme, but the Instant Kill Block sticks to its name, and kills the player even with donthurtme on also, im pretty sure that these "Instant Kill Blocks" are only in 2.0, not 1.3.0.1, so im guessing thats why you dont know them well
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image

User avatar
PixelPest
Edward
Edward
Posts: 6592
Joined: Sun Jul 12, 2015 5:38 pm
Current Project: Boom Boom Evolution
Location: Canada, Eh?
Chat Username: PixelPest
Contact:

Re: Locking a level to one character

Postby PixelPest » Thu Jan 18, 2018 9:58 pm

Do you realize how ugly that is and when you could just use either a better setup or a player filter via LunaLua? As I mentioned previously, there's no need to compensate for cheating

User avatar
The0x539
Nipper Plant
Nipper Plant
Posts: 750
Joined: Fri Jan 22, 2016 8:02 pm
Current Project: SMBX2

Re: Locking a level to one character

Postby The0x539 » Fri Jan 19, 2018 2:25 am

OlieGamerTV wrote:
PixelPest wrote:
OlieGamerTV wrote: seriously? how can someone cheat through it if its placed vertically?
The "shadowstar" cheat. However, there's no need to compensate for cheats
ah, right, forgot about that cheat, The "Shadow Star Image" Cheat makes the game extremely easy, its cool, but it does make it hard for players using that cheat, if the background is completely black
Beta 4 has "getdown" which teleports you a couple blocks down, and "noclip" which lets you just move freely in any direction with no gravity or collision. Don't bother, the player can just edit the level anyway.

OlieGamerTV
Pokey
Pokey
Posts: 208
Joined: Sun Nov 26, 2017 7:23 am
Chat Username: MarioboyFan602

Re: Locking a level to one character

Postby OlieGamerTV » Fri Jan 19, 2018 8:32 am

The0x539 wrote:
OlieGamerTV wrote:
PixelPest wrote: The "shadowstar" cheat. However, there's no need to compensate for cheats
ah, right, forgot about that cheat, The "Shadow Star Image" Cheat makes the game extremely easy, its cool, but it does make it hard for players using that cheat, if the background is completely black
Beta 4 has "getdown" which teleports you a couple blocks down, and "noclip" which lets you just move freely in any direction with no gravity or collision. Don't bother, the player can just edit the level anyway.
im sure that not even "noclip" would survive the Instant kill blocks
My Projects
Image
https://www.supermariobrosx.org/forums/ ... 31&t=20473

I Support These Projects
Spoiler: show
Image


Return to “Help and Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest