Movement Stuck With Options of Up and Left...

2012-06-10 Thread Jack Maney
Everyone, First of all, thanks to Tobias Leech for so quickly answering my previous question on alpha values. Now, I'm trying to understand movement. I managed to hack together a simple, choppy, movement by teleportation app in which one can use ASDW to move a rectangle around in the screen.

Re: Movement Stuck With Options of Up and Left...

2012-06-10 Thread Jeffrey Palmer
Hi Jack, The problem is that an SDL::Rect stores it's x and y coordinates as integers. When you subtract a small value from the coordinate the new coordinate is truncated, which is why you are able to move in negative directions. When you add a small value the same thing happens, but the

AW: Transparency?

2012-06-10 Thread Alex
Hi! When do we use blit and when do we use draw_something? Is blit faster / better? Best regards, Alex -Ursprüngliche Nachricht- Von: Tobias Leich [mailto:em...@froggs.de] Gesendet: Sonntag, 10. Juni 2012 10:47 An: Jack Maney; sdl-devel@perl.org Betreff: AW: Transparency? Hi, you have

Re: Transparency?

2012-06-10 Thread Tobias Leich
These draw_something methods out of the SDLx packages just use blit at the end anyway. A tip: dont care about speed right now, just try to get things working. Optimize at the end. Cheers Am 10.06.2012 18:42, schrieb Alex: Hi! When do we use blit and when do we use draw_something? Is blit

Re: SDL 2.541_02 Released

2012-06-10 Thread Jeffrey Palmer
This problems still occurs occasionally with Alien-SDL 1.434 http://www.cpantesters.org/cpan/report/04921c82-b30c-11e1-9066-3d54fb7543f5 I created an issue about this a while ago: https://github.com/PerlGameDev/SDL/issues/233 The build option include ogg, but those same tests fail. Should