View unanswered posts | View active topics It is currently Sat Jul 20, 2019 11:29 am



Reply to topic  [ 8 posts ] 
 Animating offsets (Now with example gifs) 
Author Message
User avatar

Joined: Fri Apr 30, 2010 2:12 pm
Posts: 560
Reply with quote
Post 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...


Sat Sep 24, 2011 10:35 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Tue Sep 27, 2011 3:58 am
Profile
User avatar

Joined: Fri Apr 30, 2010 2:12 pm
Posts: 560
Reply with quote
Post 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 :-(


Tue Sep 27, 2011 5:50 am
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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.


Tue Sep 27, 2011 8:48 pm
Profile
User avatar

Joined: Fri Apr 30, 2010 2:12 pm
Posts: 560
Reply with quote
Post Re: Animating offsets (Now with example gifs)
Thanks for replying azukki, it seems waaay more troublesome than worthy... you're right.


Tue Sep 27, 2011 9:19 pm
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1493
Reply with quote
Post 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.


Tue Oct 04, 2011 2:05 am
Profile WWW
Data Realms SUPER Elite
Data Realms SUPER Elite

Joined: Thu Jun 03, 2010 10:06 pm
Posts: 3717
Location: Over there.
Reply with quote
Post Re: Animating offsets (Now with example gifs)
Nah, I wish. I was going to use something like that for a mod, but it ain't so.

JointOffset is still read-only, as are most things of the like.


Tue Oct 04, 2011 2:33 am
Profile
User avatar

Joined: Fri Apr 30, 2010 2:12 pm
Posts: 560
Reply with quote
Post 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?


Tue Oct 04, 2011 11:17 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.017s | 13 Queries | GZIP : Off ]