mammouth31's Forum Posts

  • 7 posts
  • But i must create manually a layer named "HUD" in every layout... Not such a big deal afterall. thx

  • But i must create manually a layer named "HUD" in every layout... Not such a big deal afterall. thx

  • Hello everybody,

    I am making a point n click game and I don't know how to make my inventory menu.

    This menu would pop up on top of any level (layout) and I would like to avoid creating this menu in the editor for every layout.

    My idea was to create it dynamically in a specific top layer on start of every layout and then show/hide it when needed.

    My problem is that it seems I can't create layers dynamically in construct 2. A workaround would be to put inventory element in the top layer of the layout but I can't even get the top layer's name (My layouts can have different numbers of layers for parallax).

    Does anybody knows a solution/workaround for this ? Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, I've managed to pause the game when losing focus by adding javascript in the index.html file.

    function onBlur() {cr_setSuspended(true);};

    function onFocus(){cr_setSuspended(false);};

    Nevertheless, I still have keyboard detection issues. It seems that the "Key is down" event doesn't actually check if the key is down. It seems to be triggered on/off when pressing/releasing the key. That would be the reason why I get errors when releasing the key out of the game.

    I don't know if it can be considered as a bug but if anyone knows a solution or a workaround, it would be great !

  • Hi, I'm trying to do a game with this amazing soft but I have a little problem when game loses focus (for exemple when pressing alt, opening another window etc...)

    http://www.blommouth.com/vrac/constructTest/

    <img src="http://www.blommouth.com/vrac/constructTest/events.png" border="0">

    The text is "1" when space key is down, otherwise it's "0"

    If you leave the browser while space is pressed and then release the key, when you return to game the text still prints "1"              

    The best solution would be to pause the game when losing focus but i don't know if it's possible to detect if game is active...

    Furthermore, is it possible to disable "alt" key when playing ?

  • Sorry...

    you can test the scene here

    or

    download source

    This is juste a simple scene with a concave object with jump-thru behavior and a platform.

    The platform character falls into the jump-thru object on the left. (no problem with the same shape with solid behavior on the right).

    I'm using last version of chrome (21.0.1180.60 m), windows 7 x64, geforce 8800gts (nvidia 301.42 drivers)

  • Hello, I don't know if it's actually a bug or a limitation but i have found nothing here about it : Jump-thru behavior doesn't seem to handle concave collisions (solid behavior does). Sometimes my platform objects fall into the jump-thru object...

    Is this a limitation or a bug that can be fixed ? If it is a limitation, is there any known workaround ? (other than slice my objet into several convex objects <img src="smileys/smiley2.gif" border="0" align="middle" /> )

    Thx

  • 7 posts