Wormhole's Forum Posts

  • For that, I already have that logic. (First C3p project I have uploaded). Now I want a way to do it easier. I have multiple Sets of animation, eg, Colors, Numbers, Alphabet etc. (Second c3p Project)

    Thanks to you and other community members I have come to this far. :)

  • I'm trying to make this matching game as an endless one, Every time when the user restarts the layout I want the user to have a different set of images.

  • Here another C3p, this is what I trying to achieve. Please check.

  • I have multiple layouts, One For Numbers, One For Colors, One Alphabet, I have multiple Animation inside a single sprite called "PICTURE_SET" sprite. If i use separate JSON file for each animation set then the code becomes error-prone. If I can able to Shuffle the 2D array and avoid those empty cell, then it can be done using just a single JSON array. or Am I missing something here? is there any better way to accomplish what I'm trying to achieve?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My bad, You are correct, that logic won't support or applicable here.

    I have attached C3P project, please check.

    Please help me how can i achieve this using one JSON file?

  • Hi, Dop, The logic you gave me to random the array work just awesome. Just one question, When it shuffle, can we avoid the blank cell?

    For eg.

    I have made a mathc game, where user will mathc pictures corresponding to its text. I have made one JSON array to have all the texts.

    But when I shuffle the array, sometimes, I'm getting blank text, it is obvious because the array have those blank cells. Is there anyway to avoid those blank cell while shuffle it?

  • Okay I will post it there, but the problem is its not just display the array differently, but it doesn't work this way. Every time have to transpose it to make it work.

  • Here the issue

    Hi, Ashley

    Sorry for tagging you but I checked it with the latest beta. The array still shows it in different way.

    Please help.

  • InDWrekt Finally, I able to crack the random logic using Array, except "then remove them from the array." which you suggested, would like to thank you and dop2000, you guys are awesome.

    One quick question, On this matching game, We have multiple animations (eg, RED, GREEN, BLUE etc) by which we matching with its corresponding text. My question is how to set each animation's frame to random?

    I tried putting

    "int(random(Color.AnimationFrameCount))"

    on the start of the layout, but it doesn't work as expected, sometimes it does make random but its too limited. Please help.

  • Okay, they might make it correct on the next version.

  • Yeah, it's confusing that arrays are shown differently. X axis is displayed horizontally in the array editor and vertically in Debug.

    So it means, it must be a bug?

  • Hi [DOP2000] quick question, My JSON array width is 1 and height is 90, on the debug mode it shows everything in one cell. If I Transpose it, then only it shows every element on the proper way, My question is, can we make it show the proper way even when the width is 1 and height is 90?

  • Thank you Thank you.

  • here the c3p

  • 1. Actually I tried it

      + Button: On clicked -> Array: Set value at MyArray.At(2) to 12909090

    but it doesn't reflect, I dunno what I'm doing wrong.

    2. That works, but if my array consists of 5,5,5,5 value, once I hit the button it shows 20, but if the user hit it twice it makes it 40, 60, 80 etc the same issue happen with on the start of the layout If I put it on the start of the layout, every time the layout restart the value of is keep doubleing.