Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Murchad on Wed 09/07/2014 08:24:16

Title: Problem with views positions match
Post by: Murchad on Wed 09/07/2014 08:24:16
Hello friends. It's me again with another problem.

I've noticed today, that my character's talking view doesn't match with his idle/walking view and when he is talking, he is "jumping" few pixels to the left. Is there any possibility to globally change the position of one of the views, or I need to recreate manually each of over the hundret of frames?

Thanks in advance :)

EDIT:

I made something like that in global always part of the script:
Code (ags) Select
if (cSmith.View == 1)
  {
    cSmith.Move(cSmith.x - 5,  cSmith.y);
  }


It's working, but to be perfect i should use "4.5" instead of "5", but then I have error that "Type mismatch: cannot convert 'int' to 'float'." Any ideas how to change that?
Title: Re: Problem with views positions match
Post by: Khris on Wed 09/07/2014 12:02:56
You can't move a sprite by half a pixel...
Title: Re: Problem with views positions match
Post by: Murchad on Wed 09/07/2014 12:24:43
That's what I afraid of.