A Very Simple One For The Forums Hopefully :D

0 favourites
  • 7 posts
From the Asset Store
Scrollbars with FULL functionality and versatility, just like the ones you can find in AAA games!
  • Hello Wonderful community, I have been trying to figure out 2 things for maybe a future game.(download link to capx bellow) <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    1.I want the player to go thru the platform he is standing on onto the other platform below when I press down on the keyboard, and when I press up on the keyboard I want the player to go back up,BUT I want to achieve this without having the player jumping....so if you download the capx you will see I set the jump strength to 0

    2.In the capx I provided you will see that when you are overlapping the point and you press spacebar, it adds 1 to the score..BUT I only want to add 1 to the score once..so when I press spacebar a second time it does nothing

    PLEASE HELP!!

    bit.ly/1bVNJqT

  • I can't open the file because it's from a new C2 version, i'm using 201.

    Any way you can move the player up like this:

    Up arrow is pressed - player set y to (Self y - 10)

    And about the score, you can destroy the point:

    player overlapping point - add 1 to score

    spacebar is pressed destroy point - or set collision enable

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • AONasser covered it, I will add for #2 that if you don't want to destroy point for some reason you will need to use a variable toggle.

    Ie. overlapping point + spacebar pressed + alreadyScored=0 = add 1 to score, set alreadyScored=1

  • AONasser covered it, I will add for #2 that if you don't want to destroy point for some reason you will need to use a variable toggle.

    Ie. overlapping point + spacebar pressed + alreadyScored=0 = add 1 to score, set alreadyScored=1

    Hey,

  • To the best I understand what your asking, here is the .capx:

    https://drive.google.com/open?id=0Bx-ufu2WID53eC1jMkU4SEN5b2s (use download arrow in upper right corner)

    I did the scoring based on AONasser's version where the scoring block is destroyed when the point is given.

    If you want to keep the scoring block then I can add my variable method.

  • To the best I understand what your asking, here is the .capx:

    https://dl.dropboxusercontent.com/u/2346355/UpDownSpaceScoreExampleThingy.capx

    I did the scoring based on AONasser's version where the scoring block is destroyed when the point is given.

    If you want to keep the scoring block then I can add my variable method.

    Hey thank you for sharing your wisdom to me and the forums this is awesome

    I would love to see your variable option you mentioned for the second problem..because the idea is that there will be many blocks. but I don't want the block to be deleted

    THANKS! looking forward to your response

  • [quote:7h89sydn] I wanted to press up at the just goes up to the next level without having to hold up, BUT nevermind that

    Yeah I wasn't sure exactly what you envisioned. I will play around with a more snappy method. How many platforms will there be?

    Here is the variable version where the point giving block is not destroyed, its very simple.

    https://drive.google.com/open?id=0Bx-ufu2WID53dTVaVDUtclJVUzA

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)