Aydin Badrian's Forum Posts

  • 14 posts
  • Hi,

    I have 3 object in the scene,

    1 object as color palette,

    1 object as button

    1 object to fill with color

    I want to define a condition in which after touching button object, color of object (which considered to fill with a color) get checked and if it is match with color of color palette, shows a message accordingly.

    Thanks

  • It is fine just posting event sheet. But the events for green and red seems the same, so not possible just to say by the eventsheet.

    Test tp run your project with debug, and chench that all parameters actually will be set correctly, when you click on your drops or palettes or whatever.

    Thanks for respond,

    yes as you can see in image, events for colorPallets are the same. the problem is red palette color alone works fine, but, after adding green palette with same events as green Palette, red does not work! it does not fill flag object.

    I hope i could convey my mean. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" />

    Eventsheet file: ufile.io/0nk77

  • Posting images is all well and good, but it helps to know exactly what your problem is, rather than forcing us to work it out.

    Oh,sorry, you mean i put the project itself instead of image?

  • I got a problem that is driving me crazy. i will be so grateful if anyone can help me to find a solution. please see the image in link blow. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    pasteboard.co/HaqjL71.jpg

  • >

    > > Do you want to know how many times it was touched, or how many touches at once?

    > >

    > > Eg: If I tap a square 4 times, you see 4. If I put 4 fingers on it I see 4.

    > >

    > > Touch (https://www.scirra.com/manual/119/touch) is the quick and easy way to go.

    > > For either option you can create a variable to hold the count, and then use

    > >

    > > System>Touch>On Nth Touch Start (or End depending on your goal)

    > >

    > > count each time it starts/ends.

    > >

    > ----------------------------------------------------------------------

    > Thanks for you respond,

    > Let me explain it this way:

    > For example i have a button and a text in my layout:

    > each time that player touch the button, the text shows different numbers for each touch, like 1,2,3,...

    > First touch button: Text changes to 1

    > Second time touch same button: same text change to 2

    > ...etc

    > I dont know how to explain better, sorry <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    >

    it's exactly what i did in the shared .capx, have you tried it?

    Thank you very much for your help.

    meanwhile another problem is driving me crazy. i will be so so grateful if you can help me to find a solution. please see the image from link. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" />

    pasteboard.co/HaqjL71.jpg

  • Do you want to know how many times it was touched, or how many touches at once?

    Eg: If I tap a square 4 times, you see 4. If I put 4 fingers on it I see 4.

    Touch (https://www.scirra.com/manual/119/touch) is the quick and easy way to go.

    For either option you can create a variable to hold the count, and then use

    System>Touch>On Nth Touch Start (or End depending on your goal)

    count each time it starts/ends.

    ---------------------------------------------------------------------------------------------------

    Thank you very much for your help.

    meanwhile another problem is driving me crazy. i will be so so grateful if you can help me to find a solution. please see the image from link. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" />

    pasteboard.co/HaqjL71.jpg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you want to know how many times it was touched, or how many touches at once?

    Eg: If I tap a square 4 times, you see 4. If I put 4 fingers on it I see 4.

    Touch (https://www.scirra.com/manual/119/touch) is the quick and easy way to go.

    For either option you can create a variable to hold the count, and then use

    System>Touch>On Nth Touch Start (or End depending on your goal)

    count each time it starts/ends.

    ----------------------------------------------------------------------

    Thanks for you respond,

    Let me explain it this way:

    For example i have a button and a text in my layout:

    each time that player touch the button, the text shows different numbers for each touch, like 1,2,3,...

    First touch button: Text changes to 1

    Second time touch same button: same text change to 2

    ...etc

    I dont know how to explain better, sorry <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

  • Hi,

    I new in construct and i am going to learn it.

    How can i give order to each touch or make each touch act separately?

    For example in first touch object i want it shows 1 and in second touch on same object it shows 2 in third on same object it shows 3 and... etc

    Thanks

  • Yes its possible. Extract via 7zip to empty dir. Open File "XYZ.caproj" with notepad.

    Edit Line 11 to your version:

      <saved-with-version>24200</saved-with-version>[/code:u6zuuu4o]
    https://www.dropbox.com/s/1pwguvuw1nj68in/ColorPalette241.capx?dl=1
    Also stick to the latest stable version:
    https://www.scirra.com/construct2/releases/r252
    
    Thank very much man, it is worked
  • Sorry, you must read the manual or ask better questions.

    https://www.scirra.com/manual/37/file-menu

    https://www.scirra.com/manual/122/testing-and-publishing

    Ask better question?!! the file that linked has been saved in newer version of construct2 (252) and the construct2 i am using is older version (244). i only asked if you can re-save it in lower version or not?

  • kriand Working good here. Thanks for sharing!

    aydin Badrian Try this one?

    https://www.dropbox.com/s/isw36rgvpwzx2si/ColorPalette.capx?dl=1

    i got construct version error! is it possible to save it lower version? mine is 244

  • kriand Working good here. Thanks for sharing!

    may i ask how did you use it?

  • Hey Aydin,

    if you mean you want to colorize the object, this can help you:

    https://1drv.ms/u/s!Ap_-qxoGKbDcgRqKuOBGc_HHaztn

    ======================================================

    Hi

    Thanks for respond,

    It shows an error: pasteboard.co/H9Npr0h.png when i try to open it!

  • Hi,

    Please help me in this issue:

    I want to put a few color object inside one of my game's layout which player be able to drag color and drop them to other objects in same layout in game?

    Thanks

  • 14 posts