How do I : Click Something and then click a different thing

0 favourites
  • 6 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • I'm developing a game about farming. I have to click the plant's seed before clicking to the area we want to plant it,. But, I can't find "on object clicked " on sub events in Construct 2 r 233. Can somebody give me a solution?

  • You can use a global variable (or instance variable)

    here my try to solve your problem

    object "seed" clicked set globalVariable to "Seed"

    on object "soil" clicked AND globalVariable="Seed" .... do some actions (and at the end od the actions set globalVariable="empty hand"

    hope this helps

  • In same event you can't have more than one event beginning by a green arrow, like on click, on somthing etc

    Try with variable like this

    -If variable = step1 and on clik on plant > set variable = step 2

    -If variable = step2 and on click on area > plant your seed

  • In same event you can't have more than one event beginning by a green arrow, like on click, on somthing etc

    Try with variable like this

    -If variable = step1 and on clik on plant > set variable = step 2

    -If variable = step2 and on click on area > plant your seed

    You mean like this?

    https://www.dropbox.com/s/is7lr57a6lupb ... .capx?dl=0

    How it works

    Blue = Seed

    Green = Ground

    Green can only be clicked after a Player clicks Blue first.

    Blue disappears once the Player clicks Green only after clicking Blue.

  • Yes, it's a good beginning.

    And in function of what you want exactly you will juste need some changes.

    Like if you want to use again a ground, don't destroy it but use a variable on him like Grounf_Free > True or False

    etc

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your help

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