i have to make a little game for a class project and have to use sdl2 (coding in C).
I’m new to graphics handling and it’s pretty confusing to me. (so, explain as much as you can pls).
take a look at this pls : https://imgur.com/a/drKnifZ
so, i animate two sprites and one of them flickers. I’ve actually made two functions to handle each’s frame switching, if the character’s function comes in second, he flicks.
I’ve seen some things on google talking about vsync, i activated it but, it changes nothing.
you can find the code here : https://bin.readthedocs.fr/urestr.c
thanks in advance, and remember i understand not much of graphics handling so if you see something wrong, don’t hesitate to report it