Page 7 of 11

Re: SMBX NPC Code List

Posted: Fri Sep 25, 2015 7:09 pm
by Axiom
could you show us?

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

Posted: Tue Sep 29, 2015 4:41 pm
by LakituBros
I felt like having to do it. I am spamming brothers of mine :O

Re: SMBX Cheat Codes

Posted: Sun Dec 20, 2015 9:26 am
by KoopaGoomba
Did have penalties while using cheat codes?

Re: SMBX Cheat Codes

Posted: Sun Dec 20, 2015 9:36 am
by PixelPest
KoopaGoomba wrote:Did have penalties while using cheat codes?
On episodes you can't save after using a cheat code.

Re: SMBX Cheat Codes

Posted: Sun Dec 20, 2015 9:48 am
by Saltlord
I wish we would "Mua Boi" instead of "I am error".

Re: SMBX NPC Code List

Posted: Sun Dec 20, 2015 5:31 pm
by Alib234
i have an question can you make npc not move and do not act like conveyor belt

Re: SMBX NPC Code List

Posted: Sun Dec 20, 2015 5:58 pm
by RudeGuy
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?).

Re: SMBX NPC Code List

Posted: Mon Dec 21, 2015 4:16 pm
by cgfx
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,

Re: SMBX NPC Code List

Posted: Mon Dec 21, 2015 4:19 pm
by Emral
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.

Re: SMBX NPC Code List

Posted: Mon Dec 21, 2015 4:29 pm
by cgfx
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..

Re: SMBX NPC Code List

Posted: Mon Dec 21, 2015 4:39 pm
by Emral
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.

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 9:45 am
by Crystal More
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'?

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 9:49 am
by HeroLinik
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.

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 10:00 am
by Crystal More
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?

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 10:15 am
by HeroLinik
Crystal More wrote:which means BGOs?
Background objects. They're under the "Backgrounds" tab in the editor.

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 2:51 pm
by Crystal More
please someone give me a level using the code 'foreground'?

the test that I made using the foreground code, it did not work

Re: SMBX NPC Code List

Posted: Tue Dec 22, 2015 5:39 pm
by Valtteri
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.

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

Posted: Thu Feb 11, 2016 7:02 am
by Kunaimaster
Hey, nice! I didn't know about this :)

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

Posted: Sun Mar 13, 2016 4:52 pm
by ProngoKingdom
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.

Re: SMBX NPC Code List

Posted: Fri Mar 18, 2016 1:02 pm
by bouncywheel10
How do you use the codes to change the value of a coin/money Image?