Joe7's Forum Posts

  • Cap-Files are construct classic files.. this is a different software to construct 2.. the capx and cap-files look similar for the first sight but they have completely different targets and it's not possible to copy from classic to 2.. however eventing logic and the way how to create projects are similar ..

  • Are you using different objects? With instances of one enemyobject you wouldn't have the problem that they behave different..

  • Browser plugin.. ;)

  • Before you implement a plugin for exporting to png from scratch have a look at the c2i plugin.. not fully functional and finished but still contains some hacks that can be useful.. when I've a little more time I'll tidy it up and make a working version.. or anyboidy else..

    The toDataUrl function is unfortunately not so easy as it looks.. different renderers and missing support on android devices.. ;)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Plugin Array without property global?

  • one posibillity -

    hashmap {foo: 1, bar:2}

    1) convert it to one String/Text:

    myHM= "foo:1|bar:2"

    2) send it as one value

    myScript.php?hashMap=myHM

    3) extract the values back with php - splitting/parsing..

    another possibility is converting your datas to a JSON-String and send this string,.. then php can simple extract the data (http://www.php.net/manual/en/function.json-decode.php)

  • Two suggestion for manipulating during edittime.

    1) If it's possible it would be nice to be able to launch a small (standalone) html5 browser (window) to which we can pass something and after that get back some stuff.. eg using libraries like svg-edit during edittime.. if we have this I think only the sky is the limit for what we can do in edittime.. in theory.. ;)

    I've created a very simple example for launching a standalone html5-browser + svg-edit - done with a batch-script ==> all together ~7MB, perhaps it's possible to get some stuff back to C2 via cookies or something similar - QtWeb+svg-edit

    2) The possibility to execute an executable-file during editime and the C2-editor loads then a created file(XML- or JSON or Textfile or ..) .

    This would also open new possibilities for manipulating stuff during edittime.

    very easy example to get the idea - made with CC <img src="smileys/smiley17.gif" border="0" align="middle">

    simpleTxt.exe (CC-cap)

  • You can use javascript functions like this with the custom callJs plugin.. for debugging you can use with that plugin console.log or a simple alert.. but me too don't really understand the word compiler.. ;)

  • You can use a sprite without Animation for storing images and get them with the expression AnimationFrame.. works like an array.. :)

  • If the array is 1d and has the length 10 ...

    Set value --> arrayname.At(int(random(10)))

    10 can be changed to the array size/length expression..

  • birdlantern

    I suppose that's not possible with a dropbox file. I do that with php on a webserver.. it's not very complicated but you have to have little knowledge about ajax and

    have a webspace with php.. ;)

    I haven't used the webstorage plugin so I can say nothing about that.. afaik this plug stores locally..

  • Manual - scirra.com/manual/139/xml

    For dynamic (JSON-)loading there are also some custom plugins.. (I personally prefer JSON if possible because the format conatains less characters to load..)

  • Why do you want to store the strings level1, level2, level1000,.. ?

    I would only store the number with a global number variable 'current_level' or perhaps I don't understand the question..

    What also should work is - if you have "levelnames" - is storing at the beginning all names in a global 1d-Array eg:

    myLevelNames_Array= ['The first one','Second','Final Stage']

    and load the right value on start of each layout to the current Layout:

    LevelLabel- set Text -> myLevelNames_Array.At(current_level-1)

    <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Unfortunatly I've no time for that in the next days.. but asap..

  • rememberkarl

    Have you tried to manually include your js-file in the index.html? ( copy the line of the loading of the c2runtime.js and change the first to your script) The plugins adds the loading in the head of the index.html but after the c2runtime is called.. hope that helps..