Zathan's Forum Posts

  • You can use a container, but it works best when objects are created dynamically.

    Hmm ok

    And thanks for the example

  • Thank you guys, but I understand that. My problem is how to do that with an expression.

    How to get the right instance index ID of an object in an expression.

    Example: I have three instances of the same object in the layout. And it have a variable called IsFull. So, to show it to me:

    EVERYTICK - SET TEXT TO - "Variable IsFull: "&Object.IsFull

    ^ But I want that information from the 3 instances of the object that I have in layout, and not just from the "0" instance.

  • For example:

    I have 2 instances of the same object in the layout and it have an instance variable on it. And I have a "index text" too, to show me if this instance variables are true or false.

    But here is the problem: in the text, if I call this instance variable, it will always be the one of the first object.

    So.. if the first object in the layout have the intance in false and the other object in true, the text will always show me 'false'.

    How can I pick the IID that I want in a text?

  • Hehe ok.

    Thank you, guys!

  • Colludium

    What a nice benchmark. Really awesome. hehe

    unfortunately, that "bug" remains a mystery to me.. Ashley said that his tests gets 3x higher fps in asm.js. '-'

    Oh, and again my previous question: Web and asm.js handle just the physics behavior or every collision and things like that?

    Thanks.

  • you don't need physic to do that you could do it like this

    I thought in something more "realtime", reacting, hanging, as the char moves.

    I tried with joints, but I couldn't achieve this..

    But anyway, thank you very much

  • How can I achieve something like that?

    The 'pendulum' must react when the char move, like something hanging..

    Thanks.

  • Thanks guys, now I know it isn't just on me

    And Ashley, any idea why this happens?

  • Mobiles most likely, where memory is much more critical

    Hm.. makes sense. hehe

    I'd be curious to see your performance test because my physics stress test (basically filling up a bucket with as many small objects as possible) gets to a 3x higher object count with asm.js. The asm.js version is like a native-compiled version which browsers should be able to optimise like native code.

    Here is the capx: https://dl.dropboxusercontent.com/u/191 ... Box2D.capx

    Till 800 objects, my fps is stable. Then, goes down (web and asm.js).

    I don't know why, but I'm getting exactly the same performance with both..

    My specs:

    GTS 450

    X4 955

    4gb RAM

    And Ashley, one more question: Web and asm.js handle just the physics behavior or every collision and things like that?

    Thanks.

  • The new C2 version comes with improvements to the asm.js, and from what I could read, it's far better than the web version of Box2D.

    So, I made a test to compare both:

    Hundreds of squares, with the physics behavior, falling in a concave platform. But, I couldn't notice any difference of performance between both..

    So.. that's my question: where we can see the said difference?

  • So... is there something new about that?

    I downloaded the new version of node based on chromium 41 and, yeah.. it's better.

    But remains a 'random' jerkiness... I think it's being gradually fixed. lol

  • Yeah, sorry about that, I've looked in to it and it's a real pain. Our UI library is a big black box of another company's code and modifications can be really painful. I last looked some time ago though, I'll try investigating again and see if there's any other workarounds we can do.

    Wow, Ashley!

    Thank you very much for the tabs fix

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, i found a workaround hehe

    Thanks anyway

  • Bump..?

  • Nobody? \: