Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: When I load an image, My moving sprite freezes.  (Read 1738 times)

0 Members and 1 Guest are viewing this topic.

KasHKoW

  • Newbie
  • *
  • Posts: 41
    • View Profile
When I load an image, My moving sprite freezes.
« on: June 25, 2011, 08:45:16 am »
I have a ball that moves and has boundaries that it can't go past. I use to use a sf::Shape that worked perfectly with my algorithms physics?lol and it was very basic and generic.

Now this image within a sprite has come a long and it's freezing after a while that it runs.  When it hits the boundary, it will freeze there. I think that possibly It caught it too late, and doesn't meet the requirements to move again?

I'm not sure why it does this. Again, it works perfectly fine with a shape. Just when I use the sprite, is there some limitations and precautions I should take when using the sprite with images loaded in it. Also the image is a jpg, which I'm not just finding out is a bad format.

section_two

  • Newbie
  • *
  • Posts: 19
    • View Profile
When I load an image, My moving sprite freezes.
« Reply #1 on: June 26, 2011, 06:39:06 am »
Hi, show some code.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
When I load an image, My moving sprite freezes.
« Reply #2 on: June 26, 2011, 08:07:37 am »
We need complete and minimal code before we can help.
I use the latest build of SFML2