Recently i made a program that generates code for a program called DsGameMaker, which essentially creates a code based frame by frame sprite animation.
So far, the programming has been fine, but now, ive had to do some heavy improvisation in order to attempt to get one thing happening, which was to make seperate looping event in which to run code which moves a box representing the sprite the code will move in the Animation.
Using two timer events, for some reason, probably to do with some proccessor or ram limitations on timer events, the whole thing gets really laggy, which obviously i dont want.
One timer controlls writing the code down, the other, previously was the loop moving the sprite, though now i replaced it with a gameloop which i am sponging off an XNA tutorial/example.
The problem is
A: the whole thing looks a mess, and i know that there is a simpler way, but i dont know how.
B : the program laggs after a while, and i dont know how to fix it.
C: i havent a clue as to how i could make the sprite move (scroll) perfectly 32 sprites at a time, in a single direction, not allowing any other movement in any other direction, without there being a significant pause when switching direction. (run the program and see what i mean)
The way i Now have it set up is so that all the code which moves the sprite when sprite movement and fixed movement is selected in custom settings. is inside the XNA demo when runs side by side with my program. one day soon i will probably have to move everything into a game object to get it to run, but first i just want to try it the way it is now.
heres my project file, its really messy and for all i know does things not as efficiently as it could, but its just the way i draft a program.
To make the project meet the forums .zip size limits, i changed the jungle background into a white background with red lines.
Please help me improve my program where you see im doing something wrong, or something in a way which can be improved upon!
Last edited by jpoopdog; Nov 17th, 2011 at 06:03 AM.
First things first, I could be wrong but, from the size of your attachment, I'm guessing that you have included binaries in your archive, which is against forum rules. If that's so, please remove the attachment and create a new one that does not include binaries, which means at least removing the obj and bin folders.