chrismaliszewski's Recent Forum Activity

  • I copied all files from joe7_c2i archive to Construct 2\exporters\html5\plugins\joe7_c2i directory but after running screenShotSaving.capx file I have an error:

    "The project you are opening uses addons that are not installed: Behaviour 'Extract Image'".

    I can't find this behaviour anywhere on Internet. What I did wrong? Did I miss sth?

  • My bad... I forgot about using JSON.LoadJSON method to set data from Array.AsJSON... I created peace of code and everything works. Thank you very much!

  • I'd like to work on Array (Data & Storage), set all needed values into it, save all data from this Array to JSON object of yours into Array type of node and save JSON file. The most important thing is, that I should be able to reverse this process (go from JSON file to Array data).

    My question is...

    How to set data of Array (Data & Storage) into a Array type of node in JSON in such a way so I'll have presented notation of data inside a single key: [[0,1], [2,3]] - normal notation for arrays in JSON format. This notation has this advantage that I would be able to modify data both in JSON object and Array, if needed some day.

    I know that I can save Array as a string using Array.AsJson method into JSON Object type of node but I'd like to do it in a way mentioned above. Is it possible?

    If I wrote sth in not clear way, I'll explain this one more time.

  • I'd like to use AJAX to load files with information about levels created by users from server. For now I'm working on localhost to make some tests.

    Problem: I observed that time of completing request is very random. Sometimes when level is loaded for the first time take from "0" seconds up to 17(!) in localhost.

    How to observe the problem:

    -download attached file, unzip it, place somewhere in www PHP server directory,

    -open CAPX file, set server_location variable to proper path and run project,

    -write test or test2 inside TextBox and press Load button.

    Scenarios:

    1. After running project load both files and see times of loading. Reload page with F5 and try again (repeat this scenario several time and see if time changes).

    2. Reload whole project in Construct 2 and repeat 1.

    In some cases time of loading single file can be <0.5sec but sometimes it can take more than 4 seconds (observed up to 18sec).

    Questions:

    Why time of request is so random even on localhost? What determines the time? What can be done to make time of request quite stable and short?

  • Of course you are right about using Button On clicked rather then Mouse On left button Clicked on Object especially when 2nd one doesn't work . But questions are: why does dbl click work for 2nd event and why at the same time single click works for sprite but doesn't work for button - so what is wrong with Mouse On left button Clicked on Object and Buttons?

    About your off-topic: (remember that I'm a new one with C2 and I can be wrong) did you try events Mouse Cursor is over object (Button) AND Mouse button is down in single condition? I'm only guessing it could work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    I have a problem with Mouse event On Left button Clicked and Buttons which doesn't work. What is more interesting, Mouse event On Double-Clicked with buttons works!

    I'm not exactly sure is it a bug a not, but I can't find any information about my issue anywhere and it can be seen that in previous versions of Construct 2 (i.e. in section The Event Sheet) Mouse event On Left button Clicked on Button worked.

    Attach a Capx

    Example file is attachment to this post.

    Description of Capx

    On presented layout four things can be seen:

    -textbox - here all debug texts are written,

    -button #1 [Mouse on click] - it has event Mouse On Left button Clicked and it should set a text to textbox but it doesn't,

    -button #2 [Button on click] - it has event Button On clicked, it sets a text to textbox without problem,

    -sprite - it has event Mouse On Left button Clicked and it sets a text to textbox without problem.

    Why sprite with Mouse On Left button Clicked event works and button #1 with the same event doesn't?

    Steps to Reproduce Bug

    • Create a new project.
    • Double click on Layout and place a new object - button.
    • Double click on Layout and place a new object - textbox.
    • Double click on Layout and place a new object - Mouse.
    • Go to Event sheet and add event for Mouse On Left button Clicked on Button and as an action select Textbox and Set Text property with any text value.
    • Run an application and click on button which won't work.

    Observed Result

    Button with Mouse event on left button clicked doesn't work.

    Expected Result

    After left click button, text box should be filled with text.

    Affected Browsers

    • Chrome: Yes
    • FireFox: Yes
    • Internet Explorer: Yes

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    R168

  • Hi. I'm Krzysztof aka Chris (in English) from Poland.

    After moving to Paris with my wife I'm unemployed now because I don't know French so I decided to take action and learn sth more than HTML, JS, PHP, databases and other things I know and started to learn 'how create games in HTML5'.

    I have a few ideas and hope to publish them soon.

    Have a nice day!

chrismaliszewski's avatar

chrismaliszewski

Member since 13 May, 2014

None one is following chrismaliszewski yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies