Cheat Codes, Custom NPC Codes, Hidden NPC Tab

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?
User avatar
Axiom
Birdo
Birdo
Posts: 1490
Joined: Tue Dec 24, 2013 2:23 pm
Current Project: learning C through PSP game programming
Location: florida
Contact:

Re: SMBX NPC Code List

Postby Axiom » Fri Sep 25, 2015 7:09 pm

could you show us?
Image

User avatar
LakituBros
Bob-omb
Bob-omb
Posts: 34
Joined: Sat Sep 27, 2014 2:56 pm
Location: That lost level on SMB Lost Levels

Re: The Secret "The Lakitus are throwing Lakitus!" Editor Ta

Postby LakituBros » Tue Sep 29, 2015 4:41 pm

I felt like having to do it. I am spamming brothers of mine :O
what am i doing with life

Have a Spiny!
Image

Supported Projects:
Spoiler: show
Image
Image
Image

KoopaGoomba
Goomba
Goomba
Posts: 2
Joined: Sun Dec 20, 2015 9:00 am

Re: SMBX Cheat Codes

Postby KoopaGoomba » Sun Dec 20, 2015 9:26 am

Did have penalties while using cheat codes?

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

Re: SMBX Cheat Codes

Postby PixelPest » Sun Dec 20, 2015 9:36 am

KoopaGoomba wrote:Did have penalties while using cheat codes?
On episodes you can't save after using a cheat code.

User avatar
Koopa-Fan
Ripper II
Ripper II
Posts: 345
Joined: Thu Sep 03, 2015 12:28 pm
Current Project: idk man
Location: North Rhine Westphalia
Chat Username: Jordan
Contact:

Re: SMBX Cheat Codes

Postby Koopa-Fan » Sun Dec 20, 2015 9:48 am

I wish we would "Mua Boi" instead of "I am error".
yes

Image Image Image ImageImage Image

Alib234
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Dec 20, 2015 4:24 pm

Re: SMBX NPC Code List

Postby Alib234 » Sun Dec 20, 2015 5:31 pm

i have an question can you make npc not move and do not act like conveyor belt

User avatar
RudeGuy
Luigi
Luigi
Posts: 4880
Joined: Fri Dec 27, 2013 7:36 am
Current Project: a random smw hack
Location: idk
Chat Username: totally not rudeguy

Re: SMBX NPC Code List

Postby RudeGuy » Sun Dec 20, 2015 5:58 pm

Alib234 wrote:i have an question can you make npc not move and do not act like conveyor belt
It's possible to make NPCs not move by putting speed=0 in their txt files, but it's not possible to make them act like a conveyor belt (you meant to write "do act like conveyor belt", right?).
im bored

cgfx
Goomba
Goomba
Posts: 2
Joined: Thu Nov 12, 2015 10:34 am

Re: SMBX NPC Code List

Postby cgfx » Mon Dec 21, 2015 4:16 pm

I am adding more frames to the drybones npc animation. I have successfully done so and it is working as it should. However, when a playable character stops on its head, it just keeps playing the 8 frame walking animation but stays in place before shaking and resuming movement. I have kept the falling and down frames at the bottom of the sprite however, I must be missing something? Anyone able to shed some light on this?

Thx,

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 6351
Joined: Mon Jan 20, 2014 12:58 pm

Re: SMBX NPC Code List

Postby Enjl » Mon Dec 21, 2015 4:19 pm

frames=, framestyle= and framespeed= override parts of the NPC's animation. If you change the frame count on npcs such as dry bone, boom boom or birdo, they won't have a specific collapsing/hiding/shooting frame anymore. You can fix this with LunaLua by writing a new animation for them from scratch.
ImageImageImageImage
ImageImageImageImageImageImage
Muh favourite quotes:
Spoiler: show
TheKingOfBoos: enji I'm only scared of you cuz you're always right, and that's creepy
SnoruntPyro: if you don't like kirby you have no life
ToonQuill: do you have any hentai girl sfx
Pichu: "And Jesus said unto his apostles, 'ew so much clash 0/10'."
MNIE52: ohoho master king sitting in his golden chair! Dude, you think you're president? i will not leave, if i want - i'll leave.
MNIE52: i will not kill you, why you so rude. are you have nothing to do, boy?
Sanct: oh my god i made the perfect amount of stairs i am jesus christ.
Spoiler: show
Image

cgfx
Goomba
Goomba
Posts: 2
Joined: Thu Nov 12, 2015 10:34 am

Re: SMBX NPC Code List

Postby cgfx » Mon Dec 21, 2015 4:29 pm

Thank you Enjl for the quick reply! I have been wondering about the LunaLua and what it does. I guess now is the time to go and figure that out..

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 6351
Joined: Mon Jan 20, 2014 12:58 pm

Re: SMBX NPC Code List

Postby Enjl » Mon Dec 21, 2015 4:39 pm

cgfx wrote:Thank you Enjl for the quick reply! I have been wondering about the LunaLua and what it does. I guess now is the time to go and figure that out..
Here's an example code I've written. I'm sure it could be a lot cleaner, but it gets the job done: http://hastebin.com/oxulesijuv.lua
This is my npc-189.txt file, with the sprite showing: 4 frames left, followed by 4 frames right, followed by 1 frame for collapsing and being collapsed left, followed by the same for right:

Code: Select all

width=28
height=64
gfxwidth=32
gfxheight=64
frames=12
It won't look pretty in the editor, but will work fine while playing.
ImageImageImageImage
ImageImageImageImageImageImage
Muh favourite quotes:
Spoiler: show
TheKingOfBoos: enji I'm only scared of you cuz you're always right, and that's creepy
SnoruntPyro: if you don't like kirby you have no life
ToonQuill: do you have any hentai girl sfx
Pichu: "And Jesus said unto his apostles, 'ew so much clash 0/10'."
MNIE52: ohoho master king sitting in his golden chair! Dude, you think you're president? i will not leave, if i want - i'll leave.
MNIE52: i will not kill you, why you so rude. are you have nothing to do, boy?
Sanct: oh my god i made the perfect amount of stairs i am jesus christ.
Spoiler: show
Image

Crystal More
Spiny
Spiny
Posts: 44
Joined: Fri Oct 17, 2014 3:01 pm

Re: SMBX NPC Code List

Postby Crystal More » Tue Dec 22, 2015 9:45 am

I understood how works all the code, but did not understand how the foreground code

Valtteri wrote:
foreground=[1,0] (if true the NPC is in front of everything)
I tried to do something, but it did not work, I'll give an example:

Image


see: I put to the currency foreground=1 and I put to the animal foreground=0

from what I understand the animal had to be shown behind Currency

But that's not what happened


please help me, what is the 'foreground'?
Soon I'll put here a graphics package. Wait! :)

User avatar
HeroLinik
Cyan Yoshi Egg
Cyan Yoshi Egg
Posts: 3433
Joined: Fri Dec 20, 2013 1:28 pm
Current Project: Stupid university assignments :/
Location: I do not want you Stalkers.
Chat Username: Look below my avatar
Contact:

Re: SMBX NPC Code List

Postby HeroLinik » Tue Dec 22, 2015 9:49 am

Crystal More wrote:I understood how works all the code, but did not understand how the foreground code

Valtteri wrote:
foreground=[1,0] (if true the NPC is in front of everything)
I tried to do something, but it did not work, I'll give an example:
Spoiler: show
Image

see: I put to the currency foreground=1 and I put to the animal foreground=0

from what I understand the animal had to be shown behind Currency

But that's not what happened


please help me, what is the 'foreground'?
I don't think it works like that. The foreground attribute only works against BGOs and blocks, not other NPCs.
Image
I support: show
Lol, you got trolled. Move along, if you please.
Check out my content on YouTube! // Don't forget to check out my project as well!

Crystal More
Spiny
Spiny
Posts: 44
Joined: Fri Oct 17, 2014 3:01 pm

Re: SMBX NPC Code List

Postby Crystal More » Tue Dec 22, 2015 10:00 am

Linik wrote:
Crystal More wrote:I understood how works all the code, but did not understand how the foreground code

Valtteri wrote:
foreground=[1,0] (if true the NPC is in front of everything)
I tried to do something, but it did not work, I'll give an example:
Spoiler: show
Image

see: I put to the currency foreground=1 and I put to the animal foreground=0

from what I understand the animal had to be shown behind Currency

But that's not what happened


please help me, what is the 'foreground'?
I don't think it works like that. The foreground attribute only works against BGOs and blocks, not other NPCs.

which means BGOs?
Soon I'll put here a graphics package. Wait! :)

User avatar
HeroLinik
Cyan Yoshi Egg
Cyan Yoshi Egg
Posts: 3433
Joined: Fri Dec 20, 2013 1:28 pm
Current Project: Stupid university assignments :/
Location: I do not want you Stalkers.
Chat Username: Look below my avatar
Contact:

Re: SMBX NPC Code List

Postby HeroLinik » Tue Dec 22, 2015 10:15 am

Crystal More wrote:which means BGOs?
Background objects. They're under the "Backgrounds" tab in the editor.
Image
I support: show
Lol, you got trolled. Move along, if you please.
Check out my content on YouTube! // Don't forget to check out my project as well!

Crystal More
Spiny
Spiny
Posts: 44
Joined: Fri Oct 17, 2014 3:01 pm

Re: SMBX NPC Code List

Postby Crystal More » Tue Dec 22, 2015 2:51 pm

please someone give me a level using the code 'foreground'?

the test that I made using the foreground code, it did not work
Soon I'll put here a graphics package. Wait! :)

User avatar
Valtteri
Larry Koopa
Larry Koopa
Posts: 2156
Joined: Sun Dec 01, 2013 1:16 pm

Re: SMBX NPC Code List

Postby Valtteri » Tue Dec 22, 2015 5:39 pm

The foreground code doesn't work for all NPCs. Try it with the SMB2 Mushroom Blocks, I remember it working with those. The SMW question mark sign also covers other NPCs, I think.

I've found it's usually better to use the foreground background objects instead of NPCs.
Image

User avatar
Kunaimaster
Shy Guy
Shy Guy
Posts: 8
Joined: Thu Feb 11, 2016 6:37 am
Location: Poland

Re: The Secret "The Lakitus are throwing Lakitus!" Editor Tab

Postby Kunaimaster » Thu Feb 11, 2016 7:02 am

Hey, nice! I didn't know about this :)

User avatar
ProngoKingdom
Hoopster
Hoopster
Posts: 169
Joined: Fri Mar 11, 2016 2:45 pm
Current Project: Random levels
Location: A tiny platform

Re: The Secret "The Lakitus are throwing Lakitus!" Editor Tab

Postby ProngoKingdom » Sun Mar 13, 2016 4:52 pm

1.4.2 made this into another folder labeled "Advance" which kinda stinks. Liked it better when it was an easter egg since it was a nice little touch that the player could find.
Avatar by the talented That-Mario-Kid

Since everyone have unrelated Pokemon in their signature, I'll put some in mine too.
ImageImageImage

User avatar
bouncywheel10
Rex
Rex
Posts: 81
Joined: Fri Oct 24, 2014 1:19 am
Current Project: ???
Location: ???
Contact:

Re: SMBX NPC Code List

Postby bouncywheel10 » Fri Mar 18, 2016 1:02 pm

How do you use the codes to change the value of a coin/money Image?


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest