Small animation hitch
Okysho
Member Posts: 158
Again, I find myself with a small problem. When my character does his jump animation, the jump animation is approximately 30 pixels longer than the other animations, so whenever my character jumps, he shrinks during his time in the air. I tried to adjust the size during the animation pose state (based loosely off of the one in the platformer template on the "new" screen) but it permanently increases the size and I haven't been able to find a solution to scale it back down.
Any suggestions from the GS community?
Any suggestions from the GS community?
Comments
In Jump Rule (ex: when spacebar is down)
Animation (jump animation)
change self.width to (xxx)
change self.height to (xxx, if needed)
OTHERWISE
change self.width to (xxx (back to normal))
change self.height to (xxx (back to normal))
Complende??
Thanks Gary for your reply, but I actually already tried this and for some reason it didn't work.
Getting it to change sizes when jumping works fine, but getting it back without any problems is the issue...
I'll keep fiddling with it. Thanks for the help
-When collided with actor of type "floor" (When your character lends)
change self.width to (xxx (back to normal))
change self.height to (xxx (back to normal))
I think this will solve it..
When my character hits the ground now, the velocity slows down, almost like he's doing a small skip. For the most part this doesn't bother me, but it makes the animation look choppy
Make sure to make friction and restitution 0 under the physics of both "floor" and "character" actors.
I of course can't confirm this, it's speculation. That's just what I believe is happening...
did that even make sense?
Try this;
-When self.motion.linear.velocity.Y > 0;
*change self.width to XXX
*change self.height to XXX
Otherwise;
*change self.width to YYY
*change self.height to YYY
If I had my mac anywhere near, I would test it before telling you.. But this is the best I can do for now
You need to make all of the sequence the same size.. Just add empty space on photoshop (or some other) to the shorter images.. I think that will be the end of it!
P.S: When I'm working with actors with a lot of rules, and, if I need to change and experiment on only a little part of it (like we do here) I make a copy of the actor (Hold "alt" and drag). And on that copy, I delete everything irrelevant to what I'm working on. And replace the original actor on the scene and experiment on that "light" one. (I sometimes even create an empty scene for that actor, so, everything is much faster..
P.S. I actually have a whole extra file for experimentation, I just don't import my animations into that file. Maybe I ought to start...