mars1985's Forum Posts

  • Let me help you understand and setup a basic home server

    running node.js.

    FYI: I would recommend that you DON'T do this on your primary home computer - try setting this on on a old computer if you have one. You don't want to mess up your primary computer.

    Or you could eventually set one up as a virtual machine using VMWare Workstation but that's a whole other topic.

    Anyways: Follow these steps and you should understand what Node.js is and how to setup a simple home web server. Please watch these in order and entirety.

    1. What Node.js is:

    Subscribe to Construct videos now

    [TUBE]jo_B4LTHi3I[/TUBE]

    2. How to install Apache Web Server on Windows:

    Subscribe to Construct videos now

    [TUBE]8tBkEWPOqqk[/TUBE]

    **If you have a domain name then you can use it instead of localhost and simple go to your domain registrar and create an A Record that points to your home computers IP address:

    http://whatismyipaddress.com *If its static and your internet provider allows it.

    Download Apache Latest Stable Version:

    http://httpd.apache.org/download.cgi

    3. How to install node.js on Windows with Apache already installed - and setup a simple chat application

    Subscribe to Construct videos now

    [TUBE]hrdSN9ezDl0[/TUBE]

    Download and install the latest node.js for windows:

    http://code.google.com/p/nodejs-win

    This isn't the easiest thing in the world to do - if you get stuck - remember to Google or YouTube it first - there is a lot of good information out there.

    *Updated Broken Links

  • Thanks for the info and the screenshot!

  • Update:

    Room moderator is the client who enter the chat room earliest in the chat room.

    Room moderator can set the maximum member count of the chat room. 0 is infinity.

    "Condition:Am I room moderator?" can let current client know if it is the room moderator.

    Is there an updated .capx example for these new features?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A nice feature you may already be working on would be to assign a user name. You could do this on page load or before entering or even the first thing typed.

    Here are some cool examples:

    liveballs.nodejitsu.com

    github.com/socketio/socket.io/blob/master/examples/chat/app.js

  • Looks like there is a hack for it - I searched "Duplicate Layer" and found this post: construct.net/en

  • Seems to be some sort of version control.

    construct.net/en

    Here's some info from the manual: construct.net/en

    Configurations allow you to set up different versions of your project without having to save multiple projects to disk. Active configurations sets which configurations are currently being edited. Since only one configuration can be displayed in the editor at a time, this is chosen with the Display configuration, which must also be an active configuration.

  • I have been playing around with your plugin and I was able to make the spirit jump for both connected users by simply adding simulate jump on data received. Kind of cool.

    Here is a my .capx example of a platform sprite jumping. Every time "return" is clicked the sprite jumps in real time.

    http://dl.dropbox.com/u/23433797/ChatJumper.capx

    I am basically trying to eventually replicate something similar that was done in ImpactJS using ImpactConnect that uses socket.io and node.js.

    Multiplayer Example Video:

    youtube.com/watch

    Github: github.com/cdreier/impactConnect

    I like construct2 much better than ImpactJS.

  • Excellent job! I just tested this out and it works great! I like how you setup the socket - I have been running node.js with socket.io from a Ubuntu VM (Virtual Machine) for a few months.

    I like the idea of being able to use a product like Construct 2 to build out multi connection or multiplayer HTML5 application.

    I am surprise that this socket runs on windows.

    Do you know of any other capx examples of multi connection?

    Thanks and great job!

  • Hello, really nice job with the socket.io plugin! I am going to be messing around with it today. I see that they have done something similar with ImpactJS called impactConnect that uses socket.io and node.js.

    Multiplayer Example Video:

    youtube.com/watch

    Github: github.com/cdreier/impactConnect

    My question would be is there any working .CAPX examples such as the video above for Construct 2 multi connection example?

    Thanks!