[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Not sure what to call this.



Thanks.

On 9/16/07, Michael George <mdgeorge@xxxxxxxxxxxxxx> wrote:
You may want to look at the cannon code in my nascent game pen:

http://pen.svn.sourceforge.net/viewvc/pen/

The cannon part (code is in data/parts/cannon.py) has a barrel that can
be rotated around a base, but only in a certain range.  If you want to
see it in action, download the game, run pen.py from the src/ directory,
and then edit a level and use the scrollwheel on a cannon.

Hope this is helpful.

--Mike

Lamonte Harris wrote:
> Basically lets give a real live example.  When your standing up and
> you move your arm at an diagonal the socket of the bone doesn't move
> but your arm does, lets put this back to pygame.  How would Say if K
> have a simple sprite that has 2 parts body,1 arm.  How would say if
> that sprite is in the middle of the screen don't move but when I move
> the mouse the arm points in the direction of where the mouse is
> located, but doesn't exactly move to that position, how would that
> exactly work?