Ciao121's Forum Posts

  • Hi,

    I have a game with (i.e.) 1 sprite and a text object.

    Each time an new sprite object instance is created, also a text object instance is created for debugging purposes.

    I use those texts to display sprite's variable I need to check.

    If i delete the text object from the object's list all text objects references are removed from events/actions and that's ok.

    But if I later need the text object again I need to recreate it and recreate all related events.

    I'm looking for a way to disable this object when I do not need it (without deleting it).

    I can't simply disable the "create text object" even in the event sheet because those objects there are other references to those.

    I.e I have

    Select sprite where xxxxx

    Select text_object where xxxxx

    in the same event. And if the text is not created the event is not fired.

    Is there a way to disable object so all related events/actions are toggled disabled?

    Thank you!

  • Hi R0J0hound,

    looking at the xml make me understand how it works. Thanks!

  • How does it works? Wht's param1 and param2?

    Thank you!

  • plinkie,

    that's what I was doing. For some strange reason (maybe a particular browser setting) it was not fully working.

    Since I cleared browser cache one time it started working like a charm.

    Thanks and sorry for bothering!

  • Hi gumshoe2029,

    Thank you for your answer.

    I'm sure offline.appcache is updated (and in fact the text to reload the page is showed). In offline.cache there is also a list of all files needed to be refreshed (I think) including js files.

    If I clear my browser cache I have no problem. But I need to make it work for everyone. I can't ask users to manually clear their cache or to disable browser caching.

  • Hi,

    I have read https://www.scirra.com/tutorials/70/off ... onstruct-2 but I have still some poblems.

    When an update is ready I show a text to say the user to reload the page.

    When, after uploading new files, I open the site I get these requests on apache:

    "GET /offline.appcache HTTP/1.1"
    "GET /index.html HTTP/1.1"
    "GET /offline.appcache HTTP/1.1"[/code:zswy6o7i]
    [b]After this the text to reload the page is showed. Until here is all working.[/b]
    
    Now this happens:
    I hit reload and on apache I can see that only images files and offline.appcache file are requested.
    No js or html files are requested to the server but is still loaded from the cache.
    So the game is not updated (maybe images are, but I did not change those so I can't know).
    
    Can somebody help?
    Thank you!!!
  • Hi,

    I'm almost new to Web Games programming (and in js programming as well!). I started about 2 months ago.

    For my game I was obviously inspired by diep.io (that was inspired by "diepix arena" I suppose).

    Anyway... that's tha game: http://www.flar.io

    I do not know how it does perform with many connected players. It's almost empty at the moment. So it's also boring <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I'm working on new players levels... upgrades and bonuses.

    Currently it seems to work fine on FF and IE (I'm having some socket.io related problems on Google Chrome).

    Also I have some problem with the socket.io dsconnections (so I have to ask the players to reload to start a new game).

    Feedbacks are welcome.

    Thank you!!!

  • Problem Description

    If I add a new layer and move it down in the list all layers id are changed, but they are not updated in the events sheet.

    Attach a Capx

    Do not have a capx.

    Description of Capx

    See above

    Steps to Reproduce Bug

    • Step 1: Create one layer (id 0)
    • Step 2: System -> Create object on layer with id 0
    • Step 3: Create another layer (id 1)
    • Step 4: Move the new layer down. The layer changesto id 0. The old layer gets id 1

    Observed Result

    The object is not created on the original layer (thai is now 1) but on the new layer (that is now 0)

    Expected Result

    Hi expect that the object is created on the originl layer

    Affected Browsers

    It is not browser dependent

    Operating System and Service Pack

    Windows

    Construct 2 Version ID

    Release 233

  • Now only the onDisconnect bug and Crashes between layout change may stop me!

    Any solution for this ones?

    Hi breackzin,

    have you found any solution fot the onDisconnect bug?

    Thank you!

  • gumshoe2029,

    thanks for your answer. The problem wasn't the protocol.

    I was succesfully connecting form a simple html page using

    var socket = io.connect("http://localhost:8080");[/code:avwb1crn]
    The plugin is working with older socket.io npm package. I tried 0.9.0 an it works.
    
    Does anybody knows if is ther an updated socket.io plugin. I can't find one :/
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does not work for me too. Tried also 0.9.5.

  • Hi,

    I'm trying this but I cannot connect to the node server.

    This is the server code:

    var io = require("socket.io").listen(8080);
    
    io.sockets.on("connection", function (socket) {
    	console.log("connected");
    });
    [/code:3aeyssyz]
    and this is the only event in my project:
    
    [img="https://s10.postimg.org/vbropjzax/poject.png"]
    
    It simply does not connect.
    From this html page:
    [code:3aeyssyz]<script src="node_modules/socket.io/node_modules/socket.io-client/socket.io.js"></script>  
    <script>  
        var socket = io.connect("http://localhost:8080");
    </script>  [/code:3aeyssyz]
    it connects.
    
    Can someone help? Thank you!!!