Braus's Forum Posts

  • Ok. I saw that it is an old thread but anyone can help me with this issue?

  • For each (Object)

    Sprite is on-screen

    Sprite Animation Frame > 0

    It's not working. If I change the frame of one of the instances, I get the answer.

  • I want to check if the frame of 10 instances is the same at an event and if they are greater than 0 in another.

    I am trying:

    • to check if all the instances or some of them have the same frame:

    pick all sprite

    sprite is on-screen

    for each sprite

    sprite animation frame = sprite.animationframe

    • to check if the frame of all the instances are greater than 0:

    pick all sprite

    sprite is on-screen

    sprite animation frame > 0

  • Toddler or aquinn:

    Could you please explain to me what I need to do in the "step 3"?

  • Did you try this?

    Global Variable1 = -1

    Global Variable2 = -1

    Mouse Button is down

    -Cursor is over image & Image is "active/ready" (make an instance boolean)

    --Variable1 = -1 -> variable1 = image.instancevariable & set image boolean to false

    --else Variable2 = -1 -> Variable2 = image.instancevariable & set image boolean to false

    On button released

    -Variable1 =! -1 && Variable2 =! -1 then [where ever you need the sum to go] = Variable1 + Variable2 (& set Variable1 & 2 back to -1)

    I need to use the touch object and I will have more than 2 images (6 or 10 in total) by always clicking on two at a time. Can I use the same script with touch and with more instances than 2?

  • Oh my gosh! It's greek for me

    I thought that it would be easy. I always use a variable in the sprite and I only work with instances. My game is almost ready and I would like to keep the instances. Is there another way to solve it? Please?

  • Thanks. Can I use this method with instances of the same sprite? I'm using a variable (order) to control each instance.

  • I need to add a value in two variables when the user interacts with two images. The user must click on the first image to add the value of the first variable and, without releasing the mouse button, go to the second image, then release the mouse button (this is not drag 'n drop) to add the value in the second variable . Is it possible? (I hope so).

  • It's a nice solution. Thanks.

  • The first item (item 0) on my list needs to be a title (e.g. Objects) or an action (e.g. "Select...") and when the user open the list, this item must not appear in the list, only the other items (object1, object2, object3, etc). I also need to define a css style to the item 0 (titlle/action) and another css style to the others. How can I do this?

  • Try Construct 3

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

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

    I saw your capx and I think you can help me to solve a big problem: I need to save a JSON file on my server for each user that answer some questions during the game in ghe textbox (answer1, answer2,...,answer10) without using PHP/MySQL. I just need to save the JSON file. Is it possible?

  • Any good and wise soul to help me to figure out how to save a JSON file in my server?

  • Someone could explain to me how could I save the JSON file on my server?

  • Anyway to save the json file on my server without using PHP? I just want to save data as name, scores, time left, levels, etc, directly from my game, to be loaded and analysed by a system.

  • > I just know how to read json but I don't know how to write all this data.

    >

    plugin-json-import-export-generate-edit-inspect_t100042

    Besides that, you can get the json from arrays and dictionarys. Fill an array, or fill a dictionary. Store its json in the local storage.

    https://www.scirra.com/manual/188/local-storage

    https://www.scirra.com/manual/108/array

    Thanks

    I've found this plugin but I think that I don't need it. I can use the browser object with "invoke string"command to show the array in browser, but I need to get it as a file saved on my server. Do you know how I can do this?