YesNoOk
avatar

Trying to understand some animation stuff (Read 803 times)

Started by Ra lord, July 27, 2009, 05:34:02 pm
Share this topic:
Trying to understand some animation stuff
#1  July 27, 2009, 05:34:02 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
Ok, first of all I am new to character modding such as animations and effects... I pretty much know the coding though.

Now I've added a new animation for Lucario's fire ball. Its there, but it doesn't show up... I don't understand why... ok let me get some screens...



You can see the animation is there because of the shadow on the modded one.

Why is this happening? all I did was change the animation number on the projanim line to the new animation number. God dam it why?!

Please help
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#2  July 27, 2009, 11:26:01 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
all your frames are time of 0. That causes invisible projectiles with a shadow. Change them to 2 or something.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Trying to understand some animation stuff
#3  July 28, 2009, 12:52:47 am
  • ******
Or the new sprites have their own palette and you added them as if they shared palette with the other sprites, and as a result they pick up the palette of the other sprites and just so happen to be all black, and when you make them transparent (through color addition), well, the background + 0 = no change in color = the sprites are invisible.
It's probably either that or what Cyanide said. I'm thinking that if all animation elements had time = 0 you wouldn't even see the shadow, though - is the shadow animated, do you see it animate ?
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#4  July 28, 2009, 03:11:07 am
  • **
  • Sey
    • Australia
    • Skype - ralord89
Cool! I can see teh projectile now, now for another problem.

I've added an explod which has a new animation added with new sprites... its not sharing the pallatte, its got 4 frames all with a time of 4 for each one. trans = add and the sprites colour looks like this



here is the explod code

[State 193, 1]
type = Explod
trigger1 = time=3
anim = 66666
id = 8100
postype= p1
pos = 0,0
bindtime = -1
sprpriority = -1
ownpal = 1
removetime = 120
supermovetime = 999999
pausemovetime = 999999
removeongethit = 1
vfacing = -1
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#5  July 28, 2009, 07:50:28 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Those colours have to be included IN the palette in order to share it, as that looks like it has lots of colours, i don't quite understand why you'd want to do that.

I don't believe you're using the term "share" correctly here. More explanation of what you wish to achieve please.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Trying to understand some animation stuff
#6  July 28, 2009, 01:02:31 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
Those colours have to be included IN the palette in order to share it, as that looks like it has lots of colours, i don't quite understand why you'd want to do that.

I don't believe you're using the term "share" correctly here. More explanation of what you wish to achieve please.

Well it has the check box 'Shared Palette'... all four of the sprites I added don't have shared palette selected.

what I want to to is have the explod appear on a kick attack... so you can see it when he swings his foot... but its not appearing, Why?
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#7  July 28, 2009, 02:19:03 pm
  • ******
Shared palette = when displayed on screen, Mugen will forcibly apply the palette of the previous sprite (or the previous if it's also shared, and so on until the very first sprite) onto it. Even if the colors of the original sprite as you made it are nowhere in the palette. If so, then applying the palette on a sprite that has colors not on the palette will fuck up the display of the sprite.
If the colors of your sprites are in the palette, then you can use shared palette. Make sure the sprite does actually have the same palette as the rest of your character when you insert it into the SFF.
If your sprite has colors not in your palette, then you're not supposed to use shared palette option. It will screw it up. No matter what, if the colors of your sprite aren't in the palette or the sprite has a palette that is not the EXACT SAME (colors in a different order, slight color variation...) as your character's palette, then even if you check "shared palette", it will be screwed up. The sprite not showing at all is a possible result (again, because when the palette is applied onto it, it uses color slots from the palette that happen to be black on that palette, and 0+any number gives no change, so, invisible)
Having sprites not share palette helps only if you have more than 256 colors in total. If you have a special effect that really doesn't need to share the same palette as the character (if you don't want the colors of that effect to ever change) then you can make it not share palette (make sure it's at the end of the SFF though when you add it)
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Last Edit: July 28, 2009, 02:24:11 pm by Byakko
Re: Trying to understand some animation stuff
#8  July 28, 2009, 02:23:23 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
Shared palette = when displayed on screen, Mugen will forcibly apply the palette of the previous sprite (or the previous if it's also shared, and so on) onto it. Even if the colors of the original sprite as you made it are nowhere in the palette. If so, then applying the palette on a sprite that has colors not on the palette will fuck up the display of the sprite.
If the colors of your sprites are in the palette, then you can use shared palette. Make sure the sprite does actually have the same palette as the rest of your character when you insert it into the SFF.
If your sprite has colors not in your palette, then you're not supposed to use shared palette option. It will screw it up.

I know, I'm not sharing the palette with the 4 effect sprites. What the problem is, is that when I insert the explod with the animation selected... it doesn't appear. The animation has been made, the number is correct animation number... and I know its there, because I tested it with a projectile... but the problem is its invisable no matter what I use it as... (I.E. projectile, helper, hell I even tryed it as a a basic player animation by changing 'statedef 0' (standing) to the animation of the effect) and I don't know why.
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#9  July 28, 2009, 02:25:56 pm
  • ******
Quote
and I know its there, because I tested it with a projectile
In the projectile, does the animation actually show ?
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#10  July 28, 2009, 02:26:34 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
No, its invisable... the animation ticks is 4... all of them are
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#11  July 28, 2009, 02:27:01 pm
  • ******
Then your palette is wrong (the palette on the sprite) or you check the "shared palette" when it shouldn't be checked. Re-read all the replies we've given to you in this topic.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#12  July 28, 2009, 02:27:39 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#13  July 28, 2009, 02:28:25 pm
  • ******
YOUR PALETTE IS WRONG. REREAD ALL THE REPLIES WE'VE GIVEN TO YOU IN THIS TOPIC. What, do you really not want an answer ? Because the answer is : your palette is wrong. fix it. Fix your sprites. Add them properly in the SFF.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#14  July 28, 2009, 02:38:03 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
So even if the colours of the selected sprite aren't in the main palette... it won't show?

Bare with me sorry I'm still trying to understand all of this...
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#15  July 28, 2009, 02:43:22 pm
  • ******
Take the original sprites, the very first time you got them, with their original palette (make sure the background color is in the correct color slot in the palette)
remove the ones in your SFF
insert the original sprites back into it at the end of the SFF file, without using the "shared palette" option
save
Make your explod state controller, for a quick test you can put it in statedef -2, with triggers so that it displays indefinitely (removeexplod = -1, give it an ID to add in the trigger "trigger1 = !numexplod([your ID])

If it still doesn't display... Post your sprites.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#16  July 28, 2009, 02:54:51 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
Take the original sprites, the very first time you got them, with their original palette (make sure the background color is in the correct color slot in the palette)
remove the ones in your SFF
insert the original sprites back into it at the end of the SFF file, without using the "shared palette" option
save
Make your explod state controller, for a quick test you can put it in statedef -2, with triggers so that it displays indefinitely (removeexplod = -1, give it an ID to add in the trigger "trigger1 = !numexplod([your ID])

If it still doesn't display... Post your sprites.

Did you want the origial sprites?
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#17  July 28, 2009, 03:00:48 pm
  • ******
I wanted you to remove those sprites from your SFF and add them back properly. Either we're still missing something, or they were not added properly.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#18  July 28, 2009, 03:03:25 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
I did... I readded them without the 'Shared palette' option and tested them with an explod state, but still no luck

here are the original sprites, of course its just a screenshot since there is the axis



I've done something liket his on another character, it worked perfectly, but its not for this character.
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#19  July 28, 2009, 03:06:17 pm
  • ******
Quote
here are the original sprites, of course its just a screenshot since there is the axis
I mean the sprites themselves. The 8 bit, paletted PCX files you inserted into the SFF.
Also, you could post the explod code you used to test it.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#20  July 28, 2009, 03:11:30 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
If you mean the PCX files that were inserted into the SFF file... those are exactly it just remove the axis and they are exactly it

and the explod code

[State 0, Explod]
type = Explod
trigger1 = time=0
anim = 616
ID = 616
pos = 0,0
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -1
;supermove
;pausemove
scale = 1,1
sprpriority = 1
ontop = 1
shadow = 0,0,0
ownpal = 1
removeongethit = 1
;ignorehitpause =
;persistent =
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#21  July 28, 2009, 03:14:01 pm
  • ******
If you mean the PCX files that were inserted into the SFF file... those are exactly it just remove the axis and they are exactly it
If I said the pcx files themselves, it's because we need to confirm that
-it's a pcx file (even though Fighter Factory accepts bmp files, you're not supposed to use them because Mugen can shit them up)
-it has a correct palette
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#22  July 28, 2009, 03:15:27 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
So should I zip the PCX files and upload them for you to download? If you want to see the files themself.
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
#23  July 28, 2009, 03:26:16 pm
  • ******
Yes.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Trying to understand some animation stuff
#24  July 28, 2009, 03:28:41 pm
  • **
  • Sey
    • Australia
    • Skype - ralord89
I ate goenitz for BREAKFAST... it gave me bad wind...
Re: Trying to understand some animation stuff
New #25  July 28, 2009, 03:36:14 pm
  • ******
this is how I see your .pcx file and its palette.

Only slice1 appears correctly, but the palette is in the same condition.
That's what you should fix.
Open your sprite with any image editor that lets you edit palettes (Paint Shop Pro, Photo Shop, the GIMP I think and probably many others),
fix the sprites - make sure it looks normal in your image editor (as a .pcx file),
clean its palette (first increase the color count to 16 millions and then decrease it back to 256 colors),
save the sprite,
edit the palette (not the sprite) to move around the background color to the proper color slot in the palette,
then save the palette,
close the sprite (without saving it),
re-open the sprite
and apply the new palette on it.
Then save.
Do the same for the other sprites, and when you're done, you can now reinsert the sprites into the SFF. Still at the end without the "shared palette" option.
Otherwise, if you do have the original sprites with proper colors and proper palette, use those. I presume maybe you extracted them from some other character's SFF ? Either that SFF had something wrong, or the tool you used to extract them was bad. At any rate, these ones you uploaded are screwed, so of course, when you try to insert them, it screws up even more.

edit for readability
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Last Edit: July 28, 2009, 03:55:29 pm by Byakko