Vertigo : Discussion + Related Info

Discussion in 'Gaming' started by Jindo, Oct 16, 2009.

Thread Status:
Not open for further replies.
  1. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    Concept: You are a Llama that can switch between walking on ground and ceiling.

    Storyline:

    Llama Land is struck by a golden meteor, this meteor has plastered every stretch and corner of the land and its inhabitants in gold. You take the role of a llama that was not encased in gold but instead blown far away (7-ish worlds away to be precise.) In attempt to fix things right, you decide to find a way home using your unique ability of walking upside-down.

    Controls: Arrow keys to move and jump, space to switch (only in mid-air), you switch automatically when you're closer to ground or ceiling. Jump on enemies heads to kill them, collect the coins, and avoid dying.

    Please do not spread the link outside of this forum! It is very important that I keep the testing closed, I don't want to resort to password protection but that's what I'll do if I start seeing the game all over other sites before it's finished.
     
  2. thewrongvine

    thewrongvine The Evolved Panda Commandant Staff Member

    Ratings:
    +505 / 1 / -0
    Awesome concept, I like it, pretty unique :)
    Yeah... the ending impossible, ah.
    There should be some items that like take time to recharge or only like usable a few times, that let you change directions in the air, allowing you to maneuver better somtimes, :D

    But nice job me likes.

    ~Hai-Bye-Vine~
     
  3. Tru_Power22

    Tru_Power22 You can change this now in User CP.

    Ratings:
    +144 / 0 / -0
    Cool concept. I think it will make a neat game when its done.
     
  4. ElderKingpin

    ElderKingpin Post in the anime section, or die.

    Ratings:
    +127 / 0 / -0
    ahhh. i got it. took me like 10 tries to understand what to do. but ya. i got to the end. pretty fun :O
     
  5. Arcane

    Arcane You can change this now in User CP.

    Ratings:
    +87 / 0 / -0
    No! The cake!!
     
  6. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
  7. Arcane

    Arcane You can change this now in User CP.

    Ratings:
    +87 / 0 / -0
    Can we have the cake now?

    *plays*

    Wth, top right corner. D:


    - I hate the beginning.
    - NO! SO CLOSE TO THE CAKE!
    - I has the cake.

    I like it, except for the very beginning. I don't know how I do it, I just kind of press the keys madly, and then I get it, once every five times.
     
  8. thewrongvine

    thewrongvine The Evolved Panda Commandant Staff Member

    Ratings:
    +505 / 1 / -0
    Ah, those one-spacers where you require one space to do it exactly are killers, with the delay on jump for me, lol.
    Why not make it like health or changes such as in Mario, instead of starting over every... single... time. :D
    Can't figure how to get cake D: I gots to very end cept for cake.
    Good but annoying but cool game, :)

    ~Hai-Bye-Vine~
     
  9. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    I'm sorry, I didn't understand a word of that.

    I plan to make it easier overall, so don't worry!
     
  10. Whitesock

    Whitesock Graphics Help Zone Moderator Staff Member

    Ratings:
    +357 / 0 / -0
    There are a good amount of shortcuts there (you don't even need to use the one spacers) and it's buggy where if you're moving sideways it doesn't always pick up the switch (even if you hit it with your head).
     
  11. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    Yeah the engine itself is horribly glitchy.

    I've just attempted to write out how the system works and why it's glitching, but it turns out that even I can't understand what I'm trying to say, so I'll leave it blank for now and say that I need to be smarter if I want this to work.
     
  12. seph ir oth

    seph ir oth Mod'n Dat News Jon Staff Member

    Ratings:
    +261 / 2 / -0
    How are you going about coding the gravity flip? I noticed that certain portions of blue ceiling don't attract you back down, even though you are extremely close to it (i.e. the small block jutting out on the left portion of the example, about 2/3 of the way up). If you are still working on cleaning up the code and you haven't done this yet, I would suggest implementing 2 classes, floor and ceiling, and have it so that if the player jumps and gets whatever distance close to it, the gravity is inverted.
     
  13. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    How it works:

    There are 2 points, point 1 reaches the closest ceiling point, point 2 reaches the closest floor, the points have the following 3 rules:

    If they're ON ground but not touching it, move them in the appropriate direction until they're on the top of the ground.

    If they're in mid-air but not touching ground, move them in the appropriate direction until they're on to the top of the ground.

    In order to recalculate properly, the points do not update when the player is jumping.

    ---

    These 2 rules work until you get to blocks in mid air, the points will touch the ground but because they're not on any ground they won't move up to the floating block.

    Because I don't have an efficient way of tracking these, the points don't always update themselves.

    SO: If you jump FROM a part where the ceiling is really high, but end up below a really low ceiling while in mid-air, it doesn't track this and so it still thinks you're under a high ceiling, and so you don't flip.

    If I can find a way for the points to recalculate correctly and update while the player is in mid-air, that should be enough to fix this.

    ---

    Even if you do understand how this works, I understand that the above method(s) could sound complicated without diagrams D:
     
  14. Azlier

    Azlier Old World Ghost

    Ratings:
    +461 / 0 / -0
    I... get nothing for getting to the cake in the more difficult version? It's just a hologram? The cake is... a lie?

    I'm having problems with the space flip gravity thing not working 50% of the time. By not working, I mean pressing space does nothing.
     
  15. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    I will look in to this.
     
  16. thewrongvine

    thewrongvine The Evolved Panda Commandant Staff Member

    Ratings:
    +505 / 1 / -0
    Wow. I had no idea the space bar did something.

    ~Hai-Bye-Vine~
     
  17. seph ir oth

    seph ir oth Mod'n Dat News Jon Staff Member

    Ratings:
    +261 / 2 / -0
    I follow what you say. The question is: what is your ultimate goal on the gravity? Do you want it to continue acting as it is, or would you like the gravity to flip whenever you are that close to the ceiling?
     
  18. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    The latter, currently it does that provided you're under the ceiling BEFORE you jump (it doesn't update when you're in mid-air, so that it can recalculate properly when you land)
     
  19. seph ir oth

    seph ir oth Mod'n Dat News Jon Staff Member

    Ratings:
    +261 / 2 / -0
    Code:
    Pseudo code during a jumping procedure:
    Update the location of the character based off of gravity and left and right arrow keys
    if (alreadyFlipped == false) {
       if (gravity is negative) {
          Update the location of an invisible line to be 300 above the character's head
       }
       else if (gravity is positive) {
          Update the location of an invisible line to be 300 below the character's feet
       }
       if ((invisible line is touching a "ceiling" class object and the gravity is negative) OR (invisible line is touching a "floor" class object and the gravity is positive)) {
       gravity = gravity * -1;
       alreadyFlipped = true;
       }
    }
    Obviously the invisible line can situated however far you need it to be from the character. That's why I felt it would be nice to set up classes for the floor and ceiling; so that you can just draw away whatever object shapes you wanted in your game.
     
  20. Jindo

    Jindo Self

    Ratings:
    +462 / 0 / -0
    I removed a couple of conditionals to produce this:

    http://labs.topaz-games.com/as3labs/Vertigo_mul.html

    In this test I've created multiple levels, and I've removed the segments of code that prevent the points from updating when the player is in mid-air, hopefully the game won't break!

    For debugging purposes, and to make it clearer for you, I've made the points visible.

    Assuming this is all working fine, I'll be adding better obstacles and some collectables.

    EDIT: The last level should show you the problem I'm having, you'll see a block, but the ceiling point will appear on the ceiling above that block because it hasn't recognized it.
     
Thread Status:
Not open for further replies.

Share This Page