Magistross's Recent Forum Activity

  • This is simply not possible. There is always some sort of signalling service that needs to be brokering connections.

  • Wait... what ?

  • Funny, I tried with other browsers than IE11, and it's not working with them. The response is blocked because of the Access-Control-Allow-Origin only allowing "http://www.mywebbnerd.com". Why this works in IE and not in other browser is beyond me, I thought the CORS mechanism was server-side.

    edit: Ok, after a bit of reading, it seems that CORS is only for a user's safety... so I guess that it makes sense that it only works in IE. Turns out the Origin request is not set by IE (in my scenario at least), thus the Access-Control-Allow-Origin has no effect.

  • 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.

  • 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 ?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies