xoros's Forum Posts

  • Hi guys,

    What do you think about the feature suggestion in the subject?

  • Distributing a heavy recursion/loop over multiple ticks is a clever technique, indeed.

  • Almost, but it doesn't save a backups on preview.

  • Hello guys,

    how about the feature in the subject? C2 just crashed and I lost lots of work.

  • Hi guys,

    Let's assume I have 4 sprites and two families (A & B) which share this 4 sprites. When I create an instance of a family-A, "on Created" event of the family-B is triggered and vice versa, which is confusing.

    I want to understand is it a bug, feature or by design.

  • Check this out:

    scirra.com/forum/topic62091.html

    There's an example by Basically, the same technique can be applied for detection of connected bubbles.

    1) while loop + scaling the bubble and chek if scaled bubble overlpas another bubbles of the same color, than scale them and check again untill it doesn not overlap. This is a sort of recursion/flood fill.

  • Hello there,

    I'm building an arcade pool-like game with physics. There's an issue with the physics engine: in order for the balls to bounce properly from the borders (with the correct angle of reflection), prevent rotation should be set NO. But if the prevent rotation is set to NO, the actual IMAGE is getting rotated, which looks weird, because light reflexes and shadows on the balls are getting rotated too.

    Basically only collision polygon should be rotated and not the actual sprite.

    The only solution which comes to my mind is to use invisible sprites for collision calculation and pin another sprites on top of them, which is waste of resources.

    Are there any solutions for this, apart from that?

  • Ah, I see - it works only in chrome.

  • I tried to open it in two browser windows, but didn't see any messages I posted in chat.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It looks like you have to figure out how to install socket.io library properly. Just try to do everything step by step: 1) first instal nodejs and test it with basic examples from officail page 2)than socket.io and test it 3) setup bottleneck plugin and test it with examples by rexrainbow.

    I suggest to try it locally first. Note, that you have to change channels url's for bottleneck and lobby plugin like this "localhost:8099/game" and "localhost:8099/lobby". May be you have to change the port to something differrent.

    I'm using this plugin a lot for my multiplayer prototypes testing and I must say it is brilliant and very easy to use, though it has some issues.

  • A question rexrainbow about nodejs server:

    Is it possible to log what's happening on the server, like player names room id's, how many players are online etc.

  • What solution did you get? Cause I'm also having troubles with different browsers.

  • You can find it in the browser object:

    Browser>On suspended

    But this condition also includes, switching the tab or minimizing the browser

  • Ok, thanks man, with the help of your example I have figured out another way how to achieve that. But the issue with "OnUpdateReady" is still there, cause it's not get triggered on the first time loading.

  • So, it is still an issue: Browser>OnUpdateReady is not triggered, when the page is loaded for the first time (when it wasn't cached before). Loading progress shows 100%, but this event is not triggered. I checked everything possible and my server supports .appcache MIME-type.

    If it was cached one time, onUpdateReady works.