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

Author Topic: Im trying to animate my image but i keep running into problems  (Read 3355 times)

0 Members and 1 Guest are viewing this topic.

Sfnewbie

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
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

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Im trying to animate my image but i keep running into problems
« Reply #1 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 to help you formulate your question and then post here again
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Sfnewbie

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Im trying to animate my image but i keep running into problems
« Reply #2 on: May 30, 2021, 03:06:11 pm »
its a pastebin link right? you shouldnt need to download it

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Im trying to animate my image but i keep running into problems
« Reply #3 on: May 30, 2021, 04:07:17 pm »
usually it is, but you can also use the
Code: [Select]
tags
Visit my game site (and hopefully help funding it? )
Website | IndieDB

kojack

  • Sr. Member
  • ****
  • Posts: 343
  • C++/C# game dev teacher.
    • View Profile
Re: Im trying to animate my image but i keep running into problems
« Reply #4 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.