Magistross's Forum Posts

  • The file ajaxexample1_1.capx is flawed. The second event "On AJAX.LastData completed" doesn't make any sense. If I replace it by the trigger "On any completed" or use the empty tag, it works.

  • Using my browser's dev tools, under the network tab.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Something is amiss, when I inspect the response given by the GET call I get this :

    <html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("53d32dc6fe5278a3017bf7fc9b79b902");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://gametesting.rf.gd/example.php?i=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>[/code:3vn06igm]Is there some sort of encryption thingy on your server ?
  • Always nice to see someone adapt my system to do something MORE than it was designed to. Hope we can see your results soon!

  • ephrisian I believe you finally got it working ?

  • The problem stems from the "wait" action you have in there. If I were you, I'd ditch it altogether and create the sprites in a single tick, and deal with the delay with a timer. "Disable" the enemy on creation, and "enable" it with a timer set on creation.

  • This is probably overkill but here's something I did back then : https://www.dropbox.com/s/ry1ry2wbxmycd ... .capx?dl=0

  • The header doesn't seem right. Try this one :

    <?xml version="1.0" ?>[/code:2xsgyvl1]
    
    You might even want to specify the file's encoding. If it's UTF-8, go for :
    [code:2xsgyvl1]<?xml version="1.0" encoding="UTF-8"?>[/code:2xsgyvl1]
  • The second example capx is probably a better starting point to understanding how to use the behavior.

    The first example is more like a proof of concept, it's definitely not something you should do in a game you plan to release for mobile/tablet. Creating and destroying objects every tick, all the while doing strenuous pathfinding calculations, is absolutely not optimal.

  • Updated the plugin using the 0.4.1 version of EasyStarJS. Since I practically did this on my lunch break at work, absolutely NO testing whatsoever was done so please try it and report your success here. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://magistross.github.io/files/easy ... p_1_02.zip

  • It's unfortunately out of my control. The pathfinding algorithm comes from an external library. This plugin simply expose its API so you can use it in Construct. However, the version of the library that the plugin uses is quite outdated. Maybe this particular problem was fixed in a more recent version, but I can't be sure unless I try a newer version.

  • Opening the caproj as a text file (XML) might be a quicker alternative. If you have saved your project as a single file, simply open it as a ZIP file, and you'll find the caproj at the root level.

    Inside the XML, check the ID associated with the problematic behavior and which objects or families that still use that particular behavior ID. You could then edit out the behavior from the XML manually but it's generally safer to just reinstall the behavior and do the changes inside Construct.

  • Glad to hear!

    I had to find a way to differentiate pathfinding calls from one another. The "tag" system seemed like the best choice and was actually quite straightforward to implement using EasyStarJS.

  • Maybe a behavior that target input elements specifically could do the trick ?

    The API doesn't look that complicated, so it should be straightforward to wrap in a behavior.

  • Construct 2 doesn't have any formatting helper... you need to create your own formatting expression.

    I guess this could work :

    right(" " & floor(number), 2) & "." & zeropad(round(number * 100) % 100, 2)[/code:zk73q0i1]