hi, just watched videos, fantastic things and stuff, but I'm wondering how to display for example a nice ball (image) attached to a circle
all with pygame
[Newbie]: how to use images instead of circles
-
- Posts: 3
- Joined: Wed Oct 07, 2009 9:30 am
- Contact:
-
- Posts: 40
- Joined: Fri Aug 28, 2009 8:36 am
- Contact:
Re: [Newbie]: how to use images instead of circles
Create a sprite and apply roto-translation 2D transformation matrices according to the bodies position/angle.
-
- Posts: 3
- Joined: Wed Oct 07, 2009 9:30 am
- Contact:
Re: [Newbie]: how to use images instead of circles
is there some game or example in python or even in c/c++ that can explain to me how to do it? thankszaerl wrote:Create a sprite and apply roto-translation 2D transformation matrices according to the bodies position/angle.
-
- Posts: 40
- Joined: Fri Aug 28, 2009 8:36 am
- Contact:
Re: [Newbie]: how to use images instead of circles
You can find some good sprite tutorials on the official site. You can grab position of chipmunk bodies using cpBodyGetPos and angle with cpBodyGetAngle.
-
- Posts: 3
- Joined: Wed Oct 07, 2009 9:30 am
- Contact:
Re: [Newbie]: how to use images instead of circles
ok, I'll study. thankszaerl wrote:You can find some good sprite tutorials on the official site. You can grab position of chipmunk bodies using cpBodyGetPos and angle with cpBodyGetAngle.
I was in hurry, but I'll built block by block slowly
Who is online
Users browsing this forum: No registered users and 30 guests