Wormhole's Recent Forum Activity

  • I'm speechless. Thank you.

  • So for that, I created a JSON array and put all my animation names into it, (and want to make it random). And then trying to retrieve and set the name from it to PICTURE_SET & TEXT_SET. Please check the bellow image.

    Sorry for posting these it in so many different posts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every time when the user restarts the layout I want PICTURE_SET & TEXT_SET to have random values. Please check the image below.

  • 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?

  • 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.

Wormhole's avatar

Wormhole

Member since 19 Aug, 2020

Twitter
Wormhole has 1 followers

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies