(solved) Programming an npc: npc-9

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

bambooPenArtist
Guest

(solved) Programming an npc: npc-9

Postby bambooPenArtist » Sun May 25, 2014 6:28 pm

Ok I know I should have looked but every time I used search it omited "mushroom." :x
Anyway, the problem is I cannot get the mushroom or npc-9 to react in the way I want.
I'm trying to make it work like the smb2 styled mushrooms found in smb2, I know it is possible because there was an episode back on knux forum (I lost it and cannot remember the name) which featured this abillity on the mushrooms and the exit crystal emited from the birdo bosses.

Here is the code:

Code: Select all

height=32
width=32
playerblock=1
playerblocktop=1
npcblock=1
npcblocktop=1
score=0
grabtop=1
speed=0
I know the score modification doesn't work either.
When testing Mario just slides to the left off the top of the mushroom and auto collects it when he hits the side.
So how can I get this and other powerup/exit objects to allow the player to jump on top of them and have to pick them up in oder to collect them?
Last edited by bambooPenArtist on Mon May 26, 2014 4:29 pm, edited 1 time in total.

Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: Programming an npc: npc-9

Postby Valtteri » Sun May 25, 2014 6:49 pm

Vengeance on Redigit (the Finnish Collaboration Episode) has these, and I think I put some in Mushroom Robbers: Revisited and Valtteri Island: Revisited. You can't apply those codes to the Mushroom, you have to use the SMB2 sand block from the Lakitus are throwing Lakitus! NPC tab. You can make a Mushroom/SMB2 exit appear on its death and finally replace the graphic with the Mushroom/the exit. To make it block the player from the sizes, apply playerblock=1.

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: Programming an npc: npc-9

Postby FanofSMBX » Sun May 25, 2014 6:53 pm

Also if you want multiple powerups use invisible sand and BGOs that are hidden on the sand death.
But doesn't the sand have a weird death effect?

bambooPenArtist
Guest

Re: Programming an npc: npc-9

Postby bambooPenArtist » Mon May 26, 2014 2:46 am

Valtteri wrote:Vengeance on Redigit (the Finnish Collaboration Episode) has these, and I think I put some in Mushroom Robbers: Revisited and Valtteri Island: Revisited. You can't apply those codes to the Mushroom, you have to use the SMB2 sand block from the Lakitus are throwing Lakitus! NPC tab. You can make a Mushroom/SMB2 exit appear on its death and finally replace the graphic with the Mushroom/the exit. To make it block the player from the sizes, apply playerblock=1.
Wow I'm dumb I forgot it was your episode.
Thanks now I just got to put the script together in the events.

Edit: Don't lock this thread just yet I still may have questions while I'm trying to implement this thing.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari