LabSimulator's Forum Posts

  • Hello guys,

    cant get the idea of sort/reverse mechanics in xyz array.

    As I understand, every single value in X axis (width) contains pack of Y values defined by "height" in properties. And, similarily, every single value in Y axis contains number of Z values (depth)

    So, this table for:

    3 players - gos to x axis

    each player has 1 score (3player + 3 score=6 values) - goes to y axis

    each score has 1 subscore (9 values altogether) - goes to z axis.

    In this file:

    dropbox.com/s/swcpnsi8n13dw59/array2.capx?dl=0

    after series of sorting and resorting on different axises some values go to Universe , ending up with zeroes

  • Funny enough, clicking on "reverse x, y, z" button produces unexpected results for me, and finally gets zeroes.

    Width - 3, height - 4, depth - 4.

    capx file

    dropbox.com/s/swcpnsi8n13dw59/array2.capx?dl=0

    initial table

    dropbox.com/s/uoj8au7vl08u5h0/Screenshot%20-%2003.04.2015%20%2C%2021_39_38.png?dl=0

  • thanks puntodamar,

    actually found a workaround, that imitates multiple returns, but how to do this with sub event ?

    https://www.dropbox.com/s/4ohjbalogjsk2 ... 8.png?dl=0

  • Hi,

    I am interested, is it possible to set and get multiple return values, or it is restricted to be just one?

    Function->Set return value->Function.Param(0)+Function.Param(1)
    Call "calculate" (10,20)[/code:17bx5vuh]
    returns 30
    
    This function calculates Sum of parameters, but is it possible to calculate several values and return it?
    
    thanks
  • How can one impllement the idea of scoring in simple words?

    Lets say that each player has:

    Bob - 5 points in 10 seconds

    Mike - 10 points in 5 seconds

    John - 15 points in 15 seconds

    how they can be arranged according to score numbers? And then adressed by name - for further sortings ?

    First I thought of putting them into array, sorting and retrivieng back by iid .

    Manual says:

    [quote:80hspk9q]Sorts the order of elements on an axis in ascending order. Note that in multidimensional arrays this sorts based on the first element on the axis. For example sorting the X axis in a 2D array will sort the order of the columns based on the elements at Y co-ordinate 0, while preserving the contents of each column.

    Does it mean that after first sorting they do not preserve corresponding times ?

    thanks for help

    p.s

    I have seen the tut called "Asteroid clone in less than 100 events" that includes scoring, but sorry, no capx to strip what I wanted out of it.

  • Try Construct 3

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

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

    I am seeking a study partner for:

    1) discuss tutorials (live chat via Skype)

    2) do sample games together (desktop sharing)

    3) possibly develop and create our own game (especially interested in Multiplayer)

    4) any other idea for cooperative work will be welcomed ! Lets bring to the process more fun!

    contact:

    longleyge at hotmail.com

  • Hi guys,

    coolrain8 or any other who learn Construct 2,

    I am reading tutorials and want some live chat to discuss.

    Especially I'm interested in multiplayer, read Ashley's articles and would like to talk over Skype and possibly do some tutorials sharing desktop. My current level is a beginner, although have some coding background.

    contact:

    longleyge at hotmail.com

  • Hi,

    I wanted to ask forum - is this "the right way" of creating some time point in future ?

    So I take "time" expression, add desired number of secs and check against current time every tick

    I know it has some flaws:

    1) not checked whether input was digits or not

    2) alarm appears even before time has started (why ?)

    Thanks!

  • hmm, found the solution.

    Speed of animation should be set to zero

  • Hi all

    tried to repeat original posted file.

    In my file random frames are chosen correctly, but when sprites start falling, all random instances are the same frame.

    Does happen because I haven't used "family" ?

    Also noticed that UIDs are different: original uid is 0, mine is 3

    thanks