LeGugusse,
I'm not going to give you any code in my reply.. because it seems to me that you should go over some of the simpler AppGameKit examples and when you've done that, the right solution will become obvious to you.
However, ask yourself, "Why do I need to use copyimage?" Ask yourself this question, until you realize that you don't need to use the copyimage-function to scroll the background. There are MANY other ways of doing it, which are all
better than copyimage.
We have already told you (in the
other thread) that CopyImage is a very slow command -- because, it involves copying a large amount of RGBA data from one memory location to another, and that's a no no.
So, take your hands off the mouse and keyboard... take a deep breath, and think.
Now here are a few suggestions:
1. If you have a very large backdrop image, but AppGameKit doesn't allow you to use images larger than 1024x1024 px... then, what if, you simply break your ONE LARGE BACKDROP IMAGE into MANY SMALLER BACKDROP IMAGES that are no wider than 1024px? Don't do this by copying images out of the larger image using copyimage! Just don't. Do it by actually breaking your large backdrop into smaller images in your drawing program, like Prof suggested. Ok?
2. Then, load each of those smaller images, and make code to position each of them next to each other to form a large (wider than 1024) background, and realize, that the sprites can be positioned off-screen. (You do not need to only use coordinates that are within the visible screen area.)
3. When you want to scroll the background (as in, when the player character moves), you reposition one of these two things:
A. The backdrop images (and anything else that needs to move).
or
B. The view offset! (I highly recommend this!)
With these tips you should get back on track... But if you feel that you do not, then please, please go over the simpler examples first. Your programming skills will catch up with what you are trying to do, and you will save yourself a lot of frustration.
Cheers,
AgentSam - The grumpy old software engineer