Morhaus's Forum Posts

  • I'm currently working on another engine so I may not finish this project on Construct 2. I'll edit the topic asap.

  • I want to make HTML5 games and Construct 2 is better than GM for that.

  • Construct 2 would provide a wonderful HTML5 framework. I definitively agree with tecbug's suggestion.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the article, I read it but the different methods seemed a little bit too complicated for me. I don't know how to make it reachable for any user of my plugin.

    I finally got a working demo, with 23 events client-side and 71 lines of code for the server app.js :) No apparent lag, some basic security check for teleport. No need to edit runtime.js, but minimum skills in javascript are needed to adjust the server app.js. I think it's still possible to improve the overall ergonomy of the plugin but it's currently quite simple and easy to use.

    Now I'll take a look at nowjs groups ! I'll also try to host a server to run a demo of the plugin.

  • Hello. Just saw your suggestion. I made an example of multiple physics layers here. I'm sure it's possible to go quite far with it, even though a special action would be perfect.

  • I'm 16, self-taught programmer and webdesigner :) I learnt to use Photoshop at 10, but I only interested myself to progamming quite recently. I started with PHP/HTML/CSS in march/may 2011, encouraged by the use of the Wordpress platform and theming tools. Then I learnt the basics of javascript with the jQuery library.

    I heard about Construct 2 on a french website, and was very impressed at first by its use of HTML5. I'm currently learning to use the SDK, while developing a multiplayer plugin.

  • I think that talkinghead's multiplayer plugin will be more advanced than mine. His demo actually works better than mine ;)

    That's why I think it's possible to minimize the lag and to synchronize properly the clients.

    For now I don't plan on sharing the plugin, I don't know if I'll finish it and at its actual form it could break the projects that use it.

  • After a bit of learning on the Construct 2 SDK and the nowJS object and properties, I finally developed a plugin that allows client/server communication easily.

    My only problem is that I don't know what is the best solution to synchronize the clients. Let's say each player controls a sprite on a platform game. Should I emulate every control from a client to another? Should I save the sprite position and synchronize it every tick ? The first solution seems by far the best, and it works nice when I try it, but it produces a small lag between the clients. The last solution is ways heavier and less pratical. Do you have any idea on how I shouls proceed ?

    Thanks :)

  • I only know one french community based on Construct : construct-french.fr I don't check them often as they focus on Construct 1.

    I'm also developing a website on all kind of assisted game creation tools, that will of course include a Construct subdomain / section. Let me know if it's still eligible to be listed on scirra.com :)

  • Thanks ! I'll give it a try :)

    EDIT : It doesn't work for me. Your example server listens on port 80 whereas your example capx listens on port 8001, is it normal?

    I can't get my client to connect to the server, and I have no way to find out why :/

  • I'm from France too :)

  • The "scale" mode will resize the canvas depending on the entire window size, so I guess it will always fill all the space of the window.

    Here is the function that will be called each time the window is resized :

    <font face="Courier New, Courier, mono">function cr_sizeCanvas()

    {

    var canvas = document.getElementById("c2canvas");

    var w = Math.min(jQuery(document).width(), jQuery(window).width());

    var h = Math.min(jQuery(document).height(), jQuery(window).height());

                  ?

    if (canvas.c2runtime)

    {

    canvas.c2runtime.setSize(w, h);

    }

                  ?

    canvas.width = w;

    canvas.height = h;

    }</font>

    What you can do is making a div with a special id below the canvas, and substract its height to the canvas height.

    For example, if I have a <font face="Courier New, Courier, mono"><div id="allmytext">MYTEXT</div></font>, all I have to do is to replace <font face="Courier New, Courier, mono">canvas.height = h;</font> by <font face="Courier New, Courier, mono">canvas.height = h - jQuery("#allmytext").height();</font> !

    I would also set the canvas position to relative.

    Here is an Example

  • I would definitively not recommend you to do so, that's called black hat SEO and it's severely repressed by search engines.

  • If your canvas position is set to absolute, any text below the canvas will ignore canvas' height and position and will move behind the canvas.

    Example

    (Seems like the puu.sh minifier is blocked by the forum so I can't embed the image in my post :/)

    Could you please host your index.html so that we could take a look?

    Anyway, for any HTML debugging I'd recommend you the excellent firefox plug-in called Firebug (which is included by default in Chrome) ;)

  • Wow that's nice ! well played !