Visit this group at https://groups.google.com/group/pyglet-users.--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users...@googlegroups.com.
To post to this group, send email to pyglet...@googlegroups.com.
I've actually come across some issues myself, so this will need some additional work before merging. The first is a fairly consistent crash when changing a sprite's animation. The second is that the animation speed is not consistent. It's off enough to be visually obvious, so it should be tweaked a bit.
--
You received this message because you are subscribed to a topic in the Google Groups "pyglet-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyglet-users/_0eLxtKfUy4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyglet-users+unsubscribe@googlegroups.com.
I wrote the experimental clock. Thanks for the input. I realize I've been silent for a long time, but with some details about the issues, I can work towards better compatibility.Leif
On Mon, Feb 20, 2017 at 7:09 AM, Benjamin Moran <benmo...@gmail.com> wrote:
I've actually come across some issues myself, so this will need some additional work before merging. The first is a fairly consistent crash when changing a sprite's animation. The second is that the animation speed is not consistent. It's off enough to be visually obvious, so it should be tweaked a bit.
--
You received this message because you are subscribed to a topic in the Google Groups "pyglet-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyglet-users/_0eLxtKfUy4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyglet-users...@googlegroups.com.
import pyglet
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
image = pyglet.image.load("examples/pyglet.png")
image.anchor_x = image.width//2
image.anchor_y = image.height//2
frames = []
for i in range(4):
angle = i * 90 % 360
img = image.texture.get_transform(rotate=angle)
frames.append(img)
ani = pyglet.image.Animation.from_image_sequence(frames, 0.08)
ani2 = pyglet.image.Animation.from_image_sequence(frames, 0.2)
sprite = pyglet.sprite.Sprite(ani, x=window.width//2, y=window.height//2, batch=batch)
@window.event
def on_key_press(key, mod):
if key == pyglet.window.key.SPACE:
sprite.image = ani2
print(pyglet.clock.get_default()._schedule_interval_items)
@window.event
def on_draw():
window.clear()
batch.draw()
if __name__ == "__main__":
pyglet.app.run()
I wrote the experimental clock. Thanks for the input. I realize I've been silent for a long time, but with some details about the issues, I can work towards better compatibility.Leif
On Mon, Feb 20, 2017 at 7:09 AM, Benjamin Moran <benmo...@gmail.com> wrote:
I've actually come across some issues myself, so this will need some additional work before merging. The first is a fairly consistent crash when changing a sprite's animation. The second is that the animation speed is not consistent. It's off enough to be visually obvious, so it should be tweaked a bit.
--
You received this message because you are subscribed to a topic in the Google Groups "pyglet-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyglet-users/_0eLxtKfUy4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyglet-users...@googlegroups.com.
Sorry to pester, but do you have any issues with merging this in? I can do it of you're short on time.
Hi Leif,
Sorry to pester, but do you have any issues with merging this in? I can do it of you're short on time.