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

Author Topic: [URGENT] Foaly's AnimatedSprite setOrigin doesn't work  (Read 2020 times)

0 Members and 1 Guest are viewing this topic.

sneakysneaky

  • Newbie
  • *
  • Posts: 1
    • View Profile
[URGENT] Foaly's AnimatedSprite setOrigin doesn't work
« on: March 25, 2015, 01:02:58 pm »
I really need help urgently. This is for our final project in our gamedev class.

Here's a link to the AnimatedSprite class i used:
https://github.com/SFML/SFML/wiki/Source:-AnimatedSprite

I tried using his animatedsprite object but when i set the origin and rotate, it always rotates from the top left (0,0) it never rotates at the origin set.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: [URGENT] Foaly's AnimatedSprite setOrigin doesn't work
« Reply #1 on: March 25, 2015, 04:02:07 pm »
Quote
[URGENT]
Quote
I really need help urgently.

Really? In all caps? I kinda highly doubt the world is going to stop spinning.

Quote
This is for our final project in our gamedev class.

Final project? Then find the bug in that source you just copied (without understanding what it does) and update the wiki, it is a public wiki after all. You should be capable of finding it (this is your FINAL isn't it?).

And as always, unless people read the sticky threads there isn't much else we can do.

http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368
« Last Edit: March 25, 2015, 04:25:16 pm by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: [URGENT] Foaly's AnimatedSprite setOrigin doesn't work
« Reply #2 on: March 25, 2015, 07:09:21 pm »
I agree completely with zsbzsb. Find the bug, fix it, update the wiki - don't expect others to do that for you.
But if for some reason you'd rather just have an alternative, take a look at Thor's Animations module (but it's probably faster to just fix the bug than to change animation class).