Alright, so I have a few questions in regards to a jumping game such as Doodle Jump or most recently Mega Jump. I'm brand new to programming, however, I've gotten along quite well the past couple weeks due to the awesome resources on this website as well as this engine. I decided to build as my first game something similar to Doodle Jump. I have the game mechanics all worked out, my character jumps continuously, performs a wraparound from right to left and vice versa, and basically all the gameplay elements are there. I'm running into a bit of a snag with a few parts of the game though and have spent days sifting through the forums looking for an answer.
Problem 1:
I have no idea how to create harder "difficulties" in the game. For example, as the player goes higher and higher the types of platforms change and become more challenging. Enemies are added randomly at certain points. I've considered a statement in regards to if the score is > a certain point to initiate a change in difficulty, perhaps as the game time goes on, but I'm also confused about how to implement something like that. All my platforms are in the main game part. I'm thinking it'd be best to move them to separate layers and then call on them within the game init method, but I don't know how to do that without screwing up everything else. I also can't figure out how to make the different platforms not spawn right on top of other platforms. Any input on how to accomplish this or even a reference to a sample code/project that'd be helpful to look at would be appreciated.
Problem 2
I want some moving platforms to spawn as well. I went ahead and created the movement on the platforms using the cocos2d "moveby" function. Thats all fine, the platforms go up and down and left and right, and I've even gotten it to generate random up and down and left and right platforms, but the problem I'm running into is that as my character goes up, the moving platforms go up with him at the same rate. I've tried to specify for their y position to move - in relation to the characters y position, but it doesn't matter, the platforms always move upwards with the character. Ideas?
Anyway, I'm guessing that posting some code would be most beneficial but that'd be a whole lot of code to paste on here due to what's needed to run the platforms and game loop. But again, if anyone could point me in the right direction or offer up any resources I could study to learn how to implement these things I'd greatly appreciate it.