Data Realms Fan Forums
http://45.55.195.193/

Animating offsets (Now with example gifs)
http://45.55.195.193/viewtopic.php?f=73&t=25639
Page 1 of 1

Author:  Naxete [ Sat Sep 24, 2011 10:35 pm ]
Post subject:  Animating offsets (Now with example gifs)

It would be possible to generate one lua script which make
the arm's offsets of one Ahuman move forward and backwards? example:
(if yes, would you please code it for all us?)

http://images4.wikia.nocookie.net/__cb2 ... gunner.gif

Notice, what the "offset" of each arm move forward 5 pixels and backward 5 pixels
coinciding with each step, this would simulate a walking animation pretty well.

I'm working on unitec secret stuff and I'm trying to do something looking like this,
currently you can make the body sprite animate when the actor walks,
but you can't make the offsets move in consequence... which makes me sad.

[EDIT]
As I wondered, it sounded clear and smooth in my mind, but some people are having
problems to realize what the hecks I mean, so I made one example as one robot,
this animation would be for walking, with the torso sprite animating together with
arm offsets moving as well, it looks coherent and nice for me:

Arm view:
Image

Offset view:
Image

Obviously this would be more profitable in big actors such as mechs, walker and titans,
but I consider this something very necessary for the evolving of graphics in CC...

Author:  Asklar [ Tue Sep 27, 2011 3:58 am ]
Post subject:  Re: Animating offsets (Now with example gifs)

The only way I can think you can do something similar is doing the arm sprite "canvas" (I don't know the right word) wider, and draw the sprite with the shoulder moving horizontaly.

I don't know if I explained it ok or if it is even possible.

Author:  Naxete [ Tue Sep 27, 2011 5:50 am ]
Post subject:  Re: Animating offsets (Now with example gifs)

You've explained that ok, but I already wondered about that,
the point is If I modify the arm sprites, they will move each time
you do anything with devices not just moving and that would be a mess :-(

Author:  Azukki [ Tue Sep 27, 2011 8:48 pm ]
Post subject:  Re: Animating offsets (Now with example gifs)

Well, if there's some way to track where the wrist of the arm is, you could make the arm invisible, and then spawn a fake arm object that connects from the wrist to the moving shoulder, but the arm reach limits wouldn't move respective to the shoulder, and that whole process may be more trouble than it's worth, since you'd need to manage damage and loss of the arm, and all that.

Author:  Naxete [ Tue Sep 27, 2011 9:19 pm ]
Post subject:  Re: Animating offsets (Now with example gifs)

Thanks for replying azukki, it seems waaay more troublesome than worthy... you're right.

Author:  zalo [ Tue Oct 04, 2011 2:05 am ]
Post subject:  Re: Animating offsets (Now with example gifs)

Forgive me for bumping an old thread, but aren't attachable variables accessible now that we have super-lua?

Can't you just change the joint or parent offset of the limb?

like:
Code:
actor.JointOffset.X = walkanimodifier+3;

or something?

I'm afraid that I haven't kept up with what the new lua system will and will not allow.

Author:  Naxete [ Tue Oct 04, 2011 11:17 am ]
Post subject:  Re: Animating offsets (Now with example gifs)

zalo wrote:
Can't you just change the joint or parent offset of the limb?

That was exactly what I was thinking about and it would be a bless if it could be so easy :-(
Nonsequitorian wrote:
JointOffset is still read-only, as are most things of the like.

Shouldn't that change? I mean, nobody cares about this details or what?

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/