Animating NPC

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

Moderator: Userbase Moderators

Eyesoar
Guest

Animating NPC

Postby Eyesoar » Mon Aug 18, 2014 4:16 pm

How do I make an NPC like 209 (motherbrain) which has no animation when just standing there, have an animation? I'm trying to change its graphic into something that faces left when moving left and faces right while moving right. And depending on which way its facing will also have a walking animation in that direction.

Black Mamba
Rip Van Fish
Rip Van Fish
Posts: 1253
Joined: Thu May 29, 2014 6:11 pm
Pronouns: They/Her

Re: Animating NPC

Postby Black Mamba » Mon Aug 18, 2014 5:12 pm

You have to add extra frames and add code telling which frames are for animation and which ones are for the hit effect.

FallingSnow
Nipper
Nipper
Posts: 822
Joined: Sat Dec 21, 2013 4:32 am

Re: Animating NPC

Postby FallingSnow » Mon Aug 18, 2014 6:06 pm

I don't think you can customize mother brain that much due to the frame setup for when she takes damage, but I could be wrong.

Black Mamba
Rip Van Fish
Rip Van Fish
Posts: 1253
Joined: Thu May 29, 2014 6:11 pm
Pronouns: They/Her

Re: Animating NPC

Postby Black Mamba » Mon Aug 18, 2014 6:33 pm

I did it.

Eyesoar
Guest

Re: Animating NPC

Postby Eyesoar » Mon Aug 18, 2014 8:29 pm

Can you explain how to add these "extra frames" and "code"?

Chad
Ripper II
Ripper II
Posts: 330
Joined: Sun Mar 02, 2014 3:22 pm

Re: Animating NPC

Postby Chad » Tue Aug 19, 2014 5:48 pm

In the same folder as your level, make a Notepad file named "npc-209" (same name as Mother Brain's NPC file). Inside, put "frames=#" (# of course being the number of frames) and it will animate as such depending on the graphic. To give it two directions to face, add "framestyle=1" on a new line of the text file as well.

If you do this, though, then the hurt frames won't work. The animations will constantly loop regardless of which frames are supposed to do what. To maintain the hurt frames, you have to keep the original frame setup (where it's two frames per direction and the second frame of each direction is the hurt frame).

zioy
Birdo
Birdo
Posts: 2760
Joined: Thu Jul 17, 2014 4:47 pm
Pronouns: he/him
Contact:

Re: Animating NPC

Postby zioy » Tue Aug 19, 2014 5:53 pm

Chad wrote:In the same folder as your level, make a Notepad file named "npc-209" (same name as Mother Brain's NPC file). Inside, put "frames=#" (# of course being the number of frames) and it will animate as such depending on the graphic. To give it two directions to face, add "framestyle=1" on a new line of the text file as well.

If you do this, though, then the hurt frames won't work. The animations will constantly loop regardless of which frames are supposed to do what. To maintain the hurt frames, you have to keep the original frame setup (where it's two frames per direction and the second frame of each direction is the hurt frame).
You could give it an coating of invisible Goombas, and if one of them dies, it switches into its hurt frame (which is a foreground BGO replacing an NPC)


Return to “Help and Support”

Who is online

Users browsing this forum: Barkrowler [Bot] and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari