JohnnySheffield's Forum Posts

  • Also:

    line 1515: "ret.set_boolean(this.isPaused);"

    set_boolean is not defined, you'll have to find a workaround (maybe return 1 or 0 intead of boolean value)

  • Great plugin, thanks for sharing!

    I may have found a bug:

    Behavior version : 1.5.4.145

    Runtime.js, line 1505:

    Your code:

    "ret.set_text(this.target);"

    Proposed fix:           

    "ret.set_string(this.target);"

    Cheers!

  • My two cents:

    If TCP is good enough for World of Warcraft, should be good enough for HTML5 games.

    Socket.io is a good solution, but it has its own limitations. Current socket.io plugin for Construct isn't greatest but if you tweak it for your own needs, and respect the limitations of socket.io, it'll be good enough for most projects.

    If you really want UDP, currently your only hope is Node-webkit export and UDP / Datagram Sockets module from Node.js. But that's .exe, not HTML5.

    Without central server for game logic, there is no talk about some serious multiplayer game. I don't think we'll see some good solution for C2 multiplayer games with the "No programming required" premise any time soon.

    Cheers!

  • Try:

    1. Ctrl+N (to create a new project)

    Then scroll down to "Template: Infinite Jumping" and

    2. Click Open

    Voila!

    That template should give you a decent starting point for that kind of game,

    Cheers!

  • Great!

    Thnx for the plugin,

    Cheers!

  • Works for me when i export the project, click here

    You have some errors on the console:

    Failed to load resource: the server responded with a status of 403 (FORBIDDEN) dl.dropbox.com/s/bjt2h4wqiy80nxs/c2runtime.js[/b]

    Uncaught ReferenceError: cr_createRuntime is not defined index.html:107

    Application Cache Error event: Manifest fetch failed (403) dl.dropbox.com/s/bjt2h4wqiy80nxs/offline.appcache

    Uncaught ReferenceError: cr_setSuspended is not defined index.html:113

    Uncaught ReferenceError: cr_setSuspended is not defined index.html:115

    Uncaught ReferenceError: cr_setSuspended is not defined index.html:113

    Uncaught ReferenceError: cr_setSuspended is not defined index.html:115

    Try to re-upload the project to your public Dropbox folder.

  • Cool, sounds like a plan!

    Currently i don't need this plugin in my projects, so i won't be developing it further, but if i make a new version i plan to release it to the community!

    Cheers, and good luck with your game!

  • Yup, that's pretty much that!

    Just to repeat myself, i really made this plugin in a hurry, if you do some changes to it (and i hope you will! :) please share, so we can improve this plugin!

    Cheers!

  • Sorry, i haven't been clear!

    If you export with node-webkit, this gives you full access to the file system (e.g. the game can delete the contents of your drive if you die)

    If you use this plugin in the classic html5 export, it will probably break your game, or it won't do anything.

    For local or webstorage use the official plugins.

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nope...

    This applies only to the node-webkit export!

    If you export to .exe or mac app you can use this plugin to access file system.

    Note that i threw this plugin in few hours just to show it's possible, so consider this just as a starting point to write this up even more further!

    Check out nodejs.org/api/fs.html what's possible with this node.js module!

    Cheers!

  • Ashley

    Good news!

    Looking forward to see how the integration is done!

    Will the node-webkit be included with construct, so we have one click export, or the C2 will export a html and the node-webkit wrapping will have to be done manually?

  • Savvy001

    link to .capx doesent work!

    Also, finding candy is fun! :D

    edit: Ok, i'm a bit late :D

    thanks for sharing!

  • try this

  • Ahh, ok, that's the modifed version of zack0wack0's plugin.

    please post any questions about this plugin

    here.

    Not sure what's the problem here, but i think you should set your own configuration on how the client behaves, please refer to this

    I think the problem occurs somewhere around here; but i cannot tell without more info!

         instanceProto.connect = function(host,port)

         {          

              var socket = this.socket;

              //problem here?

              if(socket != undefined || socket != null)

                   socket["disconnect"]();

              

              this.lastAddress = host;

              this.lastPort = port;

              

                 //or problem here, maybe?

              socket = window["io"]["connect"]('http://' + host + ':' + port, {'force new connection': true});

    Cheers!

  • What socket.io plugin are you using?

    There are several versions of the plugin currently on the forums, so it would be helpful to share which are you utilizing!

    Cheers!