Question on flipping images. I saw your comment on -1 xfactor. That worked swimmingly. However, because the image is drawing from the top left, when I flip the guy as he moves left and right he "teleports" a little--he doesn't appear to switch in place.
Any tips on how to make him change directions "in place?" Specifically, any tips on how to do it without screwing up Chipmunk. I'm sort of nervous about fudging the drawing too far away from the actual position tracking that Chipmunk does on the body.
Gosu is awesome.
[note: posted this on the google wiki before I realized I should probably put it here]
By hima
Date 2009-03-03 18:09
Oh what I mean is this one
draw_rot(x, y, z, angle, center_x=0.5, center_y=0.5, factor_x=1, factor_y=1, color=0xffffffff, mode=:default): center_x Relative horizontal position of the rotation center on the image. 0 is the left border, 1 is the right border, 0.5 is the center (and default)—the same applies to center_y, respectively.
Instead of draw, using draw_rot and you can specify what kind of coordinate you want to use. Hope that helps!
Loading...