dop2000's Forum Posts

    • Post link icon

    Ashley Sorry for repeating my question - are you planning to add debug mode to remote preview? In Construct 2 it was possible and was quite useful, for example when optimizing performance on mobile devices.

    And also there is no other way to debug NWJS projects.

  • The easiest solution is to put the blue sky sprite on a layer above the balls, so that it will be covering them.

    You can also do this with blend modes, for example Destination In. Place the balls and a rectangular mask sprite on a separate layer, set blend mode on the mask, set "Force own texture=yes" in layer properties. See Blend Modes template in C3.

  • First, you are already passing user_phone and password in URL parameters, your php script can access them from there, you don't need to send them again in Data field.

    If you need to send data in JSON string, you should wrap all text values in quotes, for example:

    "{'phone':'" & user_phone & "', 'password':'" & password & "')"
    or 
    "{""phone"":""" & user_phone & """, ""password"":""" & password & """)"
    

    Or simply add these values into JSON object and use JSON.ToCompactString expression, it will format the string correctly for you.

  • See tokenat and tokencount expressions:

    scirra.com/manual/126/system-expressions

    Repeat (tokencount(text, " ")-1) times
    	Array set at loopindex value: tokenat(text, loopindex, " ")
    
  • You do not have permission to view this post

  • In a web game you can upload audio files into the Media folder, without adding them to the project, and play them using "Play (by name)" action.

    I don't know if there is any way to request audio files from a remote server with AJAX. There is an old addon that allows playing audio from BASE64 string, but it's for Construct 2:

    github.com/Pseudopode/construct2_plugins_behaviors/tree/master/pode_audio_base64

  • You do not have permission to view this post

  • "On Left button clicked" -> replace with "On any touch start" (not with "Is in touch")

    "Is Left button down" -> replace with "Is in touch" (not with "On touch start")

  • nelsonamen What's the problem? Simply replace in events:

    On Left Mouse button clicked -> On any touch start

    Left mouse button down -> Is in touch

    Mouse.x, Mouse.y -> Touch.x, Touch.y

  • The base of the troop is an empty sprite. Drag&drop different parts on it, snap them to grid. Check that each dropped part is not overlapping other parts, but is touching at least one of them. Then pin it to the base sprite.

    And, of course, each added part adds some properties to the troop - increases mobility, fire power etc.

  • I don't know, you need to try it.

    You can also do urlencode(json_encode($array)), before putting it into the parent array. In Construct you can use urldecode() expression.

  • If you have access to PHP script and can change it, I suggest you replace serialize() function with json_encode(). Then you'll be able to easily load the result string into JSON object.

    Otherwise, you'll probably have to unserialize it with Javascript, try searching stackoverflow for code examples.

  • Rewriting events is what I'm afraid of.

    For official plugins and correctly ported addons you will likely not need to rewrite anything.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As someone who recently migrated a big project over to C3, it all depends on addons you used. In my case it took several days. Some popular addons have been ported for C3 (LiteTween, MoveTo, Pin+ etc.) For others you may need to find an alternative, for example Canvas/Paster can be replaced with the official DrawingCanvas, but of course you'll need to rewrite some events.