Original Post
hey guys i did the 2d tutorials on aaroncox's website and am now attempting to write a 2d game of my own. i am using mario sprites (it should be ok since i don't plan on selling it, its just practice), and i am trying to get him to move. My trouble is this, i put the code i need for the sprite to move with the arrow keys in a function called red and it doesn't work. I know i need to feed the function an sdl thing but i don't know what it is. I think it might be something like SDL_KEYBOARD or whatever it was, i don't have my code in front of me. also how can i flip the background, then flip the new sprite of mario turning the other directon, it seems to refresh like crazy. If you guys want i will post my code, but it is long and i don't know if you want me to.