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

Re: [pygame] blitting from-to surface with per-pixel alpha doesn't work...



Thanks for your post Brian! 

Unfortunately I must prepare for my university exams in the days, so I
haven't got much time to code my game.

Anyway, the reason why I did choose the intermediate layer is that I
have a number of layers that I should rotate around different pivots. 
If you take a look to the screenshot that show my sucking with
"compositing" ( http://www.cab.u-szeged.hu/~h370556/tc_shot.zip ) then
you can understand what I'm talkin' about.

The tank have turrets that are need to be rotated around its pivots
(when you move the mouse), and the whole tank should be rotatable around
its own pivot (when you press WASD). For example when you move the tank
and you want to turn to any directions.

That's why I'm using that intermediate layer. Firstly, I position the
parts, rotate them and blit into the buffer, and finally rotate the
buffer because the parts (in this case the turrets) should to be rotated
with the tank (the buffer).

So, can you tell me something about how can I get through this problem?

T(h)ank you in advance!


-- 
DÃme

        Home: http://dgyimesi.uw.hu