LabSimulator's Forum Posts

  • thanks briggybros

    so the key is "9patch.Width - dt*10"

    so Date.Timer vs Delta time (both are frame independent, I believe )

    by overloading I meant launching many different Date.Timers for every user.

    Also workaround could be Every X secs instead "Every tick"

  • Hi guys,

    I am just interested, if anoyne created (sure somebody has done it) countdown timer with a bar, what was the concept?

    In this capx I am using built in ProgressBar, Rex Plugin for timer, boolean to start changing text only after button is pressed. What can be done to improve ? Can "Every tick" be changed on something less overloading the system ?

    https://www.dropbox.com/s/02fp8nqqqwb8qhq/bar.capx?dl=0

  • Yes, I suppose

    using plugin with built in functions make it easier

    this Date plugin By Rex is mentioned there

  • Hi,

    is this topic https://www.scirra.com/forum/viewtopic.php?f=147&t=121172 what you want to do ?

  • Hi,

    Well I have seen this answer by codah, which describes very simple and elegant way of choosing random number from the range, but excludes already chosen. The method employs 2 arrays.

    scirra.com/forum/transfer-array-vars-then-have-that-var-deleted_t119328

    But I want to ask about another method of doing this, using built in "Pick random instance". It applys corresponding IID to to every created sprite and stores this value in inst. variable. Then it picks random sprite and deletes it, and so on. Is it OK and safe?

    Another thing - where an instance with "0" IID/Variable comes from ? Without being deleted in event 5, it will show instance with var equal to zero ?

    dropbox.com/s/yua4nsd86z2vl9d/random%20and%20exclude.capx?dl=0

    thanks

  • yes , for sure

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thats fantastic trick! asking to pickup any instance with highest number, remember its value and series of sortings - 1)comparing with the value 2)pickup highest (at last !)

    thanks korbaach, it was great!

  • about jellybeez com

    mine is longleyge at hotmail.com

  • Manual:

    Instance variables

    Pick highest/lowest

    Pick the single instance with the highest or the lowest instance variable value of all the instances. Note this still only picks a single instance even if multiple instances have the same highest or lowest value; in this case an arbitrary instance is selected.

    So how to do it - among instances with highest Variable1 pick the one with highest Variable2 ?

  • Hi jellybeez,

    Sent you message to your site mailbox.

  • this way works!

    thanks ramones

  • Hi ,

    Lets assume we have 3 players, playing which each other (like soccer world cup group matches)), so every player plays once with any other.

    So with 3 players games should look like

    1 player vs 2 player

    1 player vs 3 player

    2 player vs 3 player

    3 games altogether.

    So I created 3 objects and compared their variables to decide the winner (lets say lowest wins):

    So with variables 30/20/10 it is:

    "Box 2 wins !"

    "Box 3 wins !"

    "Box 3 wins !"

    But the same with variables 3/2/1 it is:

    "Box 2 wins !"

    "Box 3 wins !"

    "Box 2 wins !"

    Where is the mistake ? In "else" statement - is it misplaced ?

    dropbox.com/s/gvhv46wjue8jawq/numbers%20compare.capx?dl=0

    Actually, this sequence is called triangular numbers (3 , 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91 so on)

  • YES ,

    It obviously makes a difference

    thanks korbaach !

  • noob question ))

    I have 2 layers , both non transparent. Upper layer (0) visible, down (1) - invisibe on start.

    A button is on the upper, visible layer. On button click

    Set - Layer 0 invisible, Layer 1 - visible.

    But why the button, that is on visible upper layer, doesnot dissapear after the click?

    dropbox.com/s/wnnz80kz0kkwj5y/visibility.capx?dl=0

  • thanks mindfaQ!!!

    So your suggestion is to have one text value i.e. "score" for every player in form of score|subscore

    and retrieve it with tokenat ?