xoros's Forum Posts

  • mattb thanks for explantion

  • R0J0hound Is there a way to use multiple collision groups with one object? Let's say I want that object A does not collide with objects B and C but collide width D and F. In the chipmunk doc I found that it's possible to set multiple collision groups on one object, but in C2 plugin I can't find the way to achieve that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm experiencing a weird behavior: if the object is moved by physics and it's size is tweened on top, the movement stops, than the tweening animation plays back, than movement continues.

    Looks like it's the issue with C2 physics, I tried animating it with another approach and get the same behavior.

    I tried using chipmunk physics by R0J0hound and it doesn't produce this behavior - nice!

  • Ah, I see

  • that will do as well, but my point was just to have a simple array functionality inside an instance of the object.

  • Depends, IMHO behavior is easier to use and more logical, because json objects belongs to the instance and is easily accessible that way.

  • I tried the behavior, so far it's usefull, but it's missing one important feature - get length of the object and forEach to go through the objects.

  • deathangel1479 Thanks, that's a solution.

  • rexrainbow sounds great. So it will be possible to store list data inside objects and do all sort of queries with that? Or it will be a mini-database inside an object?

  • Ok, it works, but with many limitations.

    1st issue - you can't add container to a family, what means if I have multiple sprite objects in the family which should share the same functionality (e.g. an array) i have to create a separate array object for each individual sprite object, because it's not possible with the family.

    2nd issue one and the same object type can't be shared by different containers, which is very limiting

    Actually it would be nice, if more modularity features would be added to C2, like proper working container with hierarchies and object blue-prints (groups of behaviors and object types).

  • gonna try that approach. I think a separate behavor would be more intuitive to use.

  • Hello fellas,

    • should be possible to store data in a multi dimensional array (or list, hashtable etc) within an instance of an object.
    • similar to a local variable of the object instance, but with array/list functionalities like push, pop, sort, iterate etc.
    • actually it could work if the official array object could be used as a behavior.

    I would use it a lot.

  • xanxion

    Currently I'm using photon cloud plugin - very good stuff and easy to use. Recommended:

    https://www.scirra.com/forum/plugin-photon-cloud_t125222

  • The plugin is very straight forward to use, just check the example .capx at the beginning of the thread.

  • Is it possible to implement something like

    • delete room" (all rooms)
    • kick player
    • on room join failed event

    Let's say I have multiple games using photon for multiplayer. Is it possible to join a random room for one of the games specifically. Right now join random room finds any room, so player from different games could land in the same room. Is there any solution to this?