mindfaQ's Forum Posts

  • I don't think you can. Maybe there is a plugin for that, I don't know.

  • just you

  • 2 options:

    • rightclick on the object in the objects- or projects-window -> clone

    this creates a new object with the same properties like sprites etc

    • or just set up your old old according to your wishes when you place it or spawn it in runtime (actually that would be the better choice imo, but I don't know what you are exactly trying to achieve)
  • I mean it's not practical.

    For example you want to save 100 different values in an array. You need 100 different actions. But you can create a one text variable and read any value with tokenat[/IMG]

    Not really 100 actions. More like 1 event and action:

    <img src="http://666kb.com/i/cjte950xdbs4r3lvn.png" border="0" />

  • "It isn't possible to give a default values for array"

    ???

  • You can't input it in the editor, but you can save them dynamically in the game. So if a text has line breaks and you save text.text into a variable, the line breaks will be retained.

    I did some testing, when outputing a string with linebreak as json it is output is

    \n but manually entering it like that in a string won't transform it into a newline.

  • if it is not in the center, but top-left use viewportleft(0)/2-sprite.width/2

  • 152, I guess we must use the same version if we can open each others projects. Maybe you should upload your identical, not working version, so I can see if it doesn't work for me either.

  • For me it works:

    s000.tinyupload.com/index.php

    (tested in Chrome, Opera)

    don't forget to press the set button before you save

  • for each y doesn't exist though, but you can simulate it with

    repeat array.height times:

    (your cury will be loopindex)

  • okay, two little things:

    • Set level to WebStorage.LocalValue("test")   -> the key is case-sensitive and you saved it as test, not Test
    • Set from JSON string level -> level is a variable, you don't want to load the word "level" as JSON

    then it works

  • If you are testing it on a PC that would be expected behavior.

  • Well not really sure what's going wrong since I can't open your project. But since this function is very simple, here a rundown how it would work if it is just supposed to be for one play session:

    variable1 = "" (text / string)

    s pressed: set variable1 = array.asjson

    l pressed: array json load from string variable1

    Not sure what can go wrong there except defining the variable as number instead of text.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You'll need the integral once you change the amplitude, turnrate or speed over time, though.

  • can't load your example as I lack some plugin

    If you want to save it over multiple sessions, use this in combination with the webstorage object.