Coin-coin le Canapin's Recent Forum Activity

  • My guess is that the origin of your sprite isn't right on its center. Can you provide a .capx ?

  • Thanks again for these useful information

    Since my game won't use a lot of physical objects, I guess I can stick to box2d web.

  • Still not fixed ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much for this explanation.

    So I guess the simplest way is to duplicate the physics behavior?

    There is no way to edit this b2_velocityThreshold value inside C2 via a custom plugin or something like that?

    The things that bother me is that I'll have to add my new custom physics behavior to all my objects and then edit all my conditions and events referring to the physics behavior to replace them with the other behavior conditions & events.

  • I could have used a "for" loop, it would have worked the same.

  • You can do that :

  • Would Hash plugin from rexrainbow do the job?

  • Hi,

    I don't know anything about behavior development.

    I need to create a copy of the default physics behavior with my own settings (just lowering b2_velocityThreshold actually)

    What's the difference between runtime.js and runtime-ams.js in this directory? The behavior seems not to be using runtime.js as deleting this file won't cause the behavior to crash.

    Plus, runtime-ams.js is twice runtime.js size though it contains some sort of minified javascript.

    If I replace runtime-ams.js content with runtime.js content, the behavior seems still working though the file is half the original size.

    Can you explain me what's going on here?

    What would be the best method in order to make my own copy of this behavior?

  • Hi,

    I'm using the default physics behavior which uses box2D and I came across a weird issue.

    When my ball hits a wall at a low speed (well, the lower the incidence angle is , the highest the speed can be to make the issue appear), it starts rolling along it instead of bouncing off, which is something I really don't want in a bounce-based game.

    I re-created this issue in a dedicated project, you can see by yourself here : http://canapin.com/construct/tests/minigolf_issue

    And download the associated .capx here : http://canapin.com/construct/tests/mini ... issue.capx

    I also tried the chipmunk physics behavior, which doesn't have this issue, but this engine doesn't have swept collision and thus let sometimes the ball appears inside a wall for a frame, which is ugly, and sometimes pass through at high speed, which is unacceptable in such a game. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Any idea how to solve my issue?

    Edit : I found out that I could fix this issue by editing the b2_velocityThreshold variable inside the physics behavior. I guess I'll have to copy this behavior to make my own so it won't be overwritten during a C2 update and won't mess my other games.

    http://canapin.com/construct/tests/mini ... ue/solved/

  • Hi.

    I've been working on a game with a chat lobby. It works for me when the chat is started from my computer on localhost or even on my online website, but my friends who try to connect are kicked by the server when connecting to the chat room.

    So I uploaded the multiplayer chat example included in Construct 2 and asked them to connect to it : http://canapin.com/construct/tutochat/

    The only thing I changed is the game name. I can connect from localhost or this very address from my computer, but I asked three friends to connect to http://canapin.com/construct/tutochat/ and they are kicked automatically as well.

    Edit : If I start /tutochat/ as the host they can't join, but if they start it as the host themselves, I can connect to them.

    I'm puzzled. Any idea where do this issue could come from? Could it be a port issue?

    Edit : solved, I had to put my local ip in the dmz in the router configuration.

  • https://www.scirra.com/manual/174/multiplayer

    "sync oject" instead of "sync object".

  • Oh yeah I forgot to mention that, my bad!

Coin-coin le Canapin's avatar

Coin-coin le Canapin

Member since 22 Dec, 2010

Twitter
Coin-coin le Canapin has 1 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies