It's been 3 weeks, and I've been thinking constantly about how to make a game doodle jump. I'd know how do make it so if he touches the platform, he jumps again: You'd just see if he's on the ground, and if he is then jump. But what I can't figure out is:
• Generate the platforms constantly out of the screen's view.
• Make it so the player can move up the platform, but can't fall back down.
• How to make it so the camera only follows the player going up.
I'd assume:
1) To make it so the player dies when he touches the end of the screen, Id' make it so the camera only moves up, but when he hits the bottom of the screen(if the player's Y is equal to 0 - the player's height).
2) Just move the camera up, just make it follow the player going up(which I don't know how to do).
I can't find any code examples in any programming language on how to do this. Same goes for endless runners. The only ones are for Scratch, GameMaker, Unity and GameSalad. I hate them. You should have to code a game, no easy tools, or shortcuts or anything like that, but that's another topic for another time(to get derailed another time too ). But I will say this: I am not against the people who use them, I'm against the creators of them.
Maybe it's something really obvious and I just can't think of it, and I've been holding off asking here because of that. But I think after 3 weeks or so I've thought long enough and searched long enough.
I did ask a while ago about random maze generation. I haven't gotten any farther with that, so I can't use any knowledge from that to help me I know how to make them spawn randomly on the X axis, but the Y axis is confusing. For the X axis, you'd just do:
Code: Select all
platform.x = math.random(0, widthOfField)
Thanks! Help is appreciated(as long as it's help and no insults)!