[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] what is the use of Rect.move(offsetX, offsetY) for moving an image?
- To: pygame-users <pygame-users@xxxxxxxx>
- Subject: [pygame] what is the use of Rect.move(offsetX, offsetY) for moving an image?
- From: tom arnall <kloro2006@xxxxxxxxx>
- Date: Sat, 5 Sep 2015 14:52:14 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 05 Sep 2015 17:52:18 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CC17Hn1LVrgvAyWS2Kd1z3pD1raLguSVLo0egs5AxAM=; b=r8wQaK+NOXo/UawbGYOKSzX+WhWLg/jJfuV+XjL/i1uopGytLjn6C0JpsTeRPIljGW 2Yj2Wr4rZrGlOSb40ERVucHGGKg+SmFEApoI6holv8gt6lOCYKx5rCXigAn++O+i/Iqt FisQEwvh8p8HQln9uK3m+ub8cj/vuUQobz//PAFSoGgv49/Zd4NwJDggxMwxTlJeisre maqzkuBq3xn839mTdGVL0i0zzthJ+L1nvm2pojDEdhh+yRlEuEEkXGx5gbZgMHuN1jKG idRgUegRjxdKIJrpOWz1y/thFy1JmupH7+YgwYOvuVIGVTplRx0ILzjsB16F0ujgLfZM KD6g==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
The docs say the Rect.move() can take only integers for the offset
parameters. My experiments seem to verify that. This means that it can
move an object in only a few directions, i.e., 1,0 for 0 degrees, 1,1
for 45 degrees etc. You can of course increase the magnitudes of the
offsets and get more angles, but then it is impossible to create the
effect of smooth movement.
My take anyway. Am I missing something?