alcemirfernandes / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

pan does not follow pynguins #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
fd(1000) pans the viewing screen a little, but then stops and the penguin moves 
off screen.  It would be great to be able to set a penguin as the center of the 
viewing screen.

What version of the product are you using? On what operating system?
HEAD, Ubuntu 9.10

Original issue reported on code.google.com by aresnick...@gmail.com on 6 Jul 2010 at 6:49

GoogleCodeExporter commented 9 years ago
Added (somewhat experimental) tracking code.

set track_main_pynguin = True in conf.py

Tracks only the main pynguin, but a different pynguin can be
set as the main one with promote(pyn)

Let me know how it works out for you...

Original comment by miss...@hotmail.com on 15 Jul 2010 at 8:38

GoogleCodeExporter commented 9 years ago
Works great so far; there's a bit of shudder if it gets within its buffer of 
the edge, which doesn't look so great (see attached OGG) but works.

Original comment by aresnick...@gmail.com on 16 Jul 2010 at 1:53

Attachments:

GoogleCodeExporter commented 9 years ago
The shudder when tracking is probably due to the fact that the pynguin movement 
is not animated smoothly, but jumps in discrete steps depending on the speed 
setting.

It should be possible to use the Qt animation framework to smooth out the 
pynguin's movements, and it is likely that would alleviate the shaky tracking.

I'm going to close this issue since tracking the pynguin is working. If the 
shudder really gets on your nerves, please open a separate report for that. 
Thanks!

Original comment by miss...@hotmail.com on 16 Jul 2010 at 9:19