Lopimp's Forum Posts

  • I installed chrome on my iPhone and there a sound of my app worked (but only once).

    here is a demo of my app, it's a small puzzle for kids, when you finish a puzzle the sound of the animal is triggered.

    lo-zone.com/labo/puzzle/demo/index.html

    works as expected on my PC, but not fine when opening in IOS browsers.

    Should I preload the sounds somehow?

    I also have a black space on top of the app (that I don't have on my laptop)

  • Ok I'll test that as well.

    Good to have several ways to do it.

    Thx

  • yes

  • Thx a lot, it fixes my issue :)

  • Hi,

    I exported one of my project to html5.

    This project run a sound (using Audio > Play 'mysound' not looping from Sound at -10dB (tage "")

    When I run it on my PC the sound works as expected.

    But when I run it on iPhone or Ipad, the sound doesn't work.

    The sound is a wav 16Bit (as recommended)

    Would you have an idea why it doesn't work?

    Thx

  • Hi,

    I have several layers with drag and droppable object in each of them.

    I set the one I want the user to play on to vissible, and the other ones to invisible.

    It looks as expected BUT ... it seems that even if the layer is not visible, the objects from the layers above are still 'effective'.

    If I try to drag and drop an object from the visible layer, some object from other invisible layers on top are still dragable, so I have to move them away before being able to move the object that is visible.

    So basically it seems that object on layers invisible are still active.

    Is there a way to 'desactivate' a layer? so it's invisible AND the object within the layer are not active/usable?

    Thanks

  • thx everybody

  • You mean that on layout start I should loop through all family instance and use the max function?

    That would work I guess (I'll give it a try asap)

    SO no function like Max but that would deal with families instance variable right away?

    Thx for the quick answer

  • Hi,

    I have a family with a numeric instance variable.

    I'd like to get the max value of this variable from all family items.

    Is there a way to do that?

    Thanks

  • Hi,

    I am still working a really basic stuff, so far I am working on a puzzle game.

    I have two families :

    • pieces (where I store puzzle pieces)
    • placeholder (where I store the placeholder where the piece should be placed)

    When I had one puzzle it was fine, but as I want to have multiple puzzle, i'd like to only have the pieces and the placeholder of the puzzle the user is playing with.

    My idea was to empty both families on layer start then add the pieces and placeholders of the current puzzle only.

    So that way I could keep only one Events page to deal with the logic of the drag and drop of pieces into placeholder.

    Now I am working on making it work with a family instance variable isActive for pieces and also one isActive for placeholders families.

    I am still on my way and I am not sure I'll be able to finalize all.

    So far it's fine for pieces, but I am still struggling with the 'set active' of placeholders of my current puzzle only.

    What I feel now is that it's a quite chaotic work around and that having action to add and remove items from families would be clearer and a more structured way to go

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I am raising up this post as I would also be interested in the possibility to manipulate objects within a family dynamically through Events.

    Is there a way to add/remove/ clear object from a family?

    Thx

  • Ok I updated the 0 to use a variable instead.

    thanks

    Here is the full capx using functions/families and sub-events : lo-zone.com/labo/puzzleLo/puzzleLo4.capx

    Thanks a lot for the help

  • Sorry i don't get it.

    What did you fix that I broke?

    Regarding this topic, it's actually still valid. I didn't find a way to get an object by UID and use it in an action.

    It might not be possible but would be useful (I think)

  • Yes thx but so far I only use effect to have visual testing.

    If you can help me with my other issue feel free :)

  • Ok good to Know thank you. It's always good to know such things.

    So far I use effects for testing only.

    I managed to get a hold of my cell Id but now I am stuck with another issue related to the same issue.

    It's related to this post : scirra.com/forum/puzzle-board-game-best-practices-capx-incl_topic76776.html