In Need of Help with a few Minor C++ Problems
Alright. I have been working on two video games in C++: Pac-Man and Pong. I have been able to do most of it myself, but there are a few minor things that is giving me a hell of a time.
The first issue is to run a loop of cycling images. I have the sprites for Pac-Man, and I want to have the mouth open and close while running the program, by looping the images. I can't seem to get it to work. All I can get it to do is show one image while running.
The second issue is collisions. I can easily get images to collide with certain 'x' or 'y' points, but I can not get an image to collide with another image. This is the issue with Pong. I want the ball to collide with ONLY the paddle, and not a the entire side of the program screen. I will also need to apply this concept in Pac-Man with colliding with the maze walls.
The last problem is automatic movement of images. In Pong, I will need the ball to bounce around the screen by itself, and I need the second paddle to be controlled by the program. In Pac-Man, I need the ghosts to automatically move around the maze. I feel like this is a simple concept, but I just can't figure it out.
I don't think that this is anything major that I am asking help with, and I would greatly appreciate any help I can get on this. Also, I didn't think I needed to post any of my code, but if needed, I'll gladly post parts of it.
Thanks.