SFML community forums

Help => General => Topic started by: Sfnewbie on May 30, 2021, 12:33:29 pm

Title: Im trying to animate my image but i keep running into problems
Post by: Sfnewbie on May 30, 2021, 12:33:29 pm
can someone debug it?
i dunno what you're suppossed to do on forums so sorry if i dont follow etiquitte
https://pastebin.com/6UavyR6T
https://pastebin.com/XTdHny0q
https://pastebin.com/84wGe716
Title: Re: Im trying to animate my image but i keep running into problems
Post by: Stauricus on May 30, 2021, 01:27:58 pm
sorry, no one is going to download the entire code and try to debug it to find the solution for a problem you didn't describe  :P

check this (https://en.sfml-dev.org/forums/index.php?topic=5559.0) to help you formulate your question and then post here again
Title: Re: Im trying to animate my image but i keep running into problems
Post by: Sfnewbie on May 30, 2021, 03:06:11 pm
its a pastebin link right? you shouldnt need to download it
Title: Re: Im trying to animate my image but i keep running into problems
Post by: Stauricus on May 30, 2021, 04:07:17 pm
usually it is, but you can also use the
Code: [Select]
tags
Title: Re: Im trying to animate my image but i keep running into problems
Post by: kojack on May 31, 2021, 12:14:47 pm
It definitely makes it easier when what is happening that isn't correct is stated.

But at a guess, it looks like your animation update function isn't using deltaTime, so the animation doesn't advance frames. Probably a totalTime+=deltaTime; should be in there.