i just started using SDL engine to make a 2d game . This is the code ive got so far, you can view it online on googledocs via this link:
i have made bold the code that causes the problem.
when i do
apply_surface(0, 0, stick, screen, &runStick[frame]); there is no problem and the animation is displayed at the x = 0 and y = 0.
but when i swap it with the class variables 'Stick::x' and 'Stick::y' or just 'x' or 'y' which are also initialized to 0, the animation just does not appear..
i can't seem to find the solution and my debugger wont function properly.
any help will be greatly appreciated.