Need help making a game

jjjhhh98jjjhhh98 Member Posts: 1
edited November -1 in Working with GS (Mac)
Ok. I have an idea for a game which is similar to doodle jump. My questions are how do you affect some actors with gravity and not with some others, how do you make platforms spawn as you go up, how do you create the scoring system that changes each time you land on a platform.

Comments

  • HachikoHachiko Member Posts: 330
    I'm doing a similar game. It didn't start at all like doodle jump, it's pretty different, not even going up :). But hey, you have to jump, and I digged a lot about the random thing.

    Sadly, I couldn't make a nice random spawn without having big loss in framerates, even if they there just for a fraction of second. Probably on Ipad you wouldn't have any problem.
    Essentially, you have an accellerate down attribute on the actor that have to jump. When the actor hit the platform, change velocity or change attribute motion Y to a value of your choice (300, 400, the higher the value, the higher the jump).
    That's it. The actor will go uuuuup and then the accelleration kicks in, and the actor start to fall again.

    For the random thing, what I came up with essentially was, every platform spawn another platform. Like, when platform comes up, it change a self.attribute at a random value. Based on the result, it will spawn another platform to a random X position and an Y value of self.positionY+desired distance. So, if it's a "spring" platform, that make the actor jump higher, you would like to increase the Y distance from the actor that spawned it.
    Finally, since the screen size can go on forever, (I forgot, I think it's better to make the platform non movable objects, and just have the actor go up, followed by camera. like... if actor position.Y is greater than camera origin Y+240, control camera.) you can make it big.
    Like 5000 thousand in height. or more, don't know. Destroy every objects which Y position is less than camera origin Y.
    When Camera origin Y is greater than max height of the screen-480, change a value to true.
    And then, in every actor, when the value is true, change self.positionY to self.PositionY - 4520, if i'm not wrong. So that everything still the same, but in reality you are starting again from scratch.

    That's what I came up with, but I wasn't pleased with the final results, and after lot of try, I got tired and I will just stick with the levels part of the game, not "infinite" mode. Maybe I'll leave that for an ipad version :).

    My english isn't good, so I don't really know if what I said makes sense xD
    Anyway, hope this helps.
Sign In or Register to comment.