Animated Sprites

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

Moderator: Userbase Moderators

Wanderingwillow
Guest

Animated Sprites

Postby Wanderingwillow » Sun Apr 13, 2014 3:16 pm

I have a question about npc sprites animations. For example the koopa npc has 2 frames of animation for both directions he faces, but is there a way to add more frames. Say I want a 5 frame walking animation, is it possible to do that?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9860
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Animated Sprites

Postby Emral » Sun Apr 13, 2014 3:18 pm

you write a text document titled "npc-'number'.txt" and write the following in it:

Code: Select all

frames=5
if you want to have 5 frames. If you want him to face in only one direction at all times, add

Code: Select all

framestyle=0
We have a bunch of npc codes you can look up here:
http://www.smbxgame.com/forums/v ... f=35&t=428

Wanderingwillow
Guest

Re: Animated Sprites

Postby Wanderingwillow » Sun Apr 13, 2014 3:19 pm

Thank you :)

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

Re: Animated Sprites

Postby Chad » Sun Apr 13, 2014 11:15 pm

I would like to add that if you plan on having the Koopa face two possible directions as it normally does, you need to add framestyle=1 as well. Even though the Koopa's default framestyle is 1, specifying a number of frames without specifying the framestyle will default it to 0.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 8 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari