MultipleChoice's Recent Forum Activity

  • That's a very useful thread it seems first, since I also thought, it obviously could save cpu.

    But...

    ... I did a stress-test with both solutions, as follows:

    (Galaxy SIII - dead same conditions, besides described below)

    Test A

    • 8 Spawning points (for Heroes)
    • each spawning Heroes every 2s (8 at once)
    • each of them with their own path finding detection at "created" (no map regenerating/registering new obstacles/costs, only FindPath command, rotate object on)
    • going to the same goal

    Test B

    • 1 Spawning point (for one hero at once)
    • Spawning point finds path on start and saves it in an array to share with spawned heroes (exactly as in zatyka's capx)
    • Spawning point spawning 1 Hero at a time, every 0.5s
    • Hero has bullet-behavior and follows path (exactly as in zatyka's capx)

    A vs. B

    Sum of Heroes on Map / FPS (average)

    A: 0/21; 25/20; 50/18; 100/15; 150/14; 200/12; 250/11; 300/10; 350/9; 400/8; 500/7; 600/6;

    B: 0/21; 25/18; 50/16; 100/14; 150/12; 200/10; 250/9; 300/7; 350/6; 400/6; 500/6; 600/5;

    I also have to note, I tested it first in my desktop browser - same tendency, though it spreads way more, so "A" has a bigger advantage

    A: dropping below 60 fps only above 500 heroes on map and 56 fps when 850

    B: dropping already after 250 heroes on map below 60 fps and 56 fps when 425

    Since "move along path" does also rotate/turn my heroes smoothly around corners - whereas bullet-behavior does not (it is possible of course, but why bother, it surely won't make it faster) - I am not sure it makes any sense to substitute the path-finding-behavior.

    Feel free to correct me, if I'm wrong, since I am really keen to find a faster solution than path-finding (especially on mobiles).

    This thread is a bit older, maybe path-finding got better meanwhile? Or bullet-behavior worse

    Any explanation? For me it does not really make sense, since the path objects have to move and rotate too in addition to generating the path.. how can that be faster, right? But the numbers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • monitz87: I'm happy with Construct 2 completely, getting along awesome, though i NEVER wrote any code before... Also I am faster than most of my programming friends, so construct already saves you massive time, I get that.

    So no complains at all, at the end of the day, I just thought, let's ask people with more experience. And it was worth it, since I learned something new

    Thanks again!

  • The problem is, I need to be able to calculate like if sign(x) = sign(y) then A else B. And I like to be effektive, so trying to keep things short

    After Posting, I exactly figured the workaround of Zhon, that works well of course, since I only need the function for just one value.

    If I needed the function often in the script, I might use monitz87`s solution, though I am not sure how to do that in an effective way. I think that could become a bit complex, which makes it only worth to implement, if you need it all the time for a lot of different variables. Still a great solution, also I did not know at all, you could do that. So this Answer was very, very useful

    Thanks for the quick and helpful replies!

  • Hi there,

    anyone knowing if there is a possibility to use the "sign" function? It seems to be missing - is it missing or called differently?

    If missing, is there any workaround?

    ( I mean this: http://en.wikipedia.org/wiki/Sign_%28mathematics%29)

    It would be really, really useful <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    Thanks in advance!

  • Hi,very nice plugin making my life easier <img src="smileys/smiley32.gif" border="0" align="middle" />

    Have you considered add the possibility of adjusting the effect of easing?

    That is maybe the only thing, one could wish for, to make it work for all situations and have a more individual character of the transitions. <img src="smileys/smiley2.gif" border="0" align="middle" />

    Sorry, I just saw: I had planned on adding support for custom transition functions at some point in the future. It is on the TODO list.

    I guess, thats about, what I meant... awesome!

    Keep up the good work!

MultipleChoice's avatar

MultipleChoice

Member since 25 Oct, 2013

None one is following MultipleChoice yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies