Hi guys. I have this 2d side scrolling game. It is Almost done. I know the technique in 2d side scrolling games. That the character is just on the center of the screen and only moving is the Background and platforms. I make a mob for my game. I have attached the codes and media. Dont mind the error of the animation of Mario and the mob. When Mario reaches the center of the screen the background starts to move. But Mario cannot reach the mob because it is moving along with the screen.
Now, try the Code 2 in the notepad. I put some DEC and INC code for the mob's X-axis so that Mario can reach the mob. But when Mario starts to move the mob is getting start to have a problem.
I dont know what to do now. I try all the techniques. Please , if have any idea how will the problem will end, please share it with me.
i have a problem in darkbasic codes. pls help me