This should be an easy one for all you C2 Wizards :)

  • Hello all you Construct 2 Wizards out there. I have been trying and trying but cant seem to figure it out <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    1) I would like to randomize the blue block at different parts on the platform.

    2) I would like to add 1 to my score when the player collides with the blue block. BUT only if I press a button on the keyboard then it will add 1 to the score(You will see it in the example below) Meaning..when the player collides with the blue block I will have to press a button on the keyboard(lets say spacebar) and it will add 1 to the score.

    Thank You All, this is a wonderful community <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    bit.ly/1IALV3V

  • Try this:

    1- System - every(random(1,9)seconds --- System - create bluebox at x position

    2- player on collision with bluebox --- add 1 to score

    keyboard space is down

  • Try this:

    1- System - every(random(1,9)seconds --- System - create bluebox at x position

    2- player on collision with bluebox --- add 1 to score

    keyboard space is down

    Hey thanks for the reply Your suggestion for my second question worked well,but I still cant seem to randomize the blue box on the platform,but thanks for taking time to help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use random expression for the X position

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