Tenchizard's Forum Posts

  • 5 posts
  • Thanks for the answer, though it's quite the complicated sentence there. I had to break it down to try to understand what was going on there.

  • Hello everybody. I've been looking around but my question right now is a bit precise so I didn't find anything. Here is my problem:

    I want to be able to random choose among some items (each with a number, for example), so the next time I have to choose, the ones chosen before won't be available, like this:

    I have items 1 to 5. Random gets number 2.

    Next cycle, I have items 1, 3, 4 and 5. Random gets 5.

    Next cycle, I have items 1, 3 and 4. And so on.

    The way to treat the items is not really important, I don't mind using objects, variables or whatever, it's just that without programming, I don't know how to approach this problem.

  • Hi there! I found out about Construct 2 while browsing some indie games, saw a reference and then came to see what it was. I must say I'm quite impressed with this tool, as not only is it good for making games, I find it quite useful too for making quick prototypes to see if an idea is fun or not.

  • Thanks a lot, that did it. I thought I needed some "Pick all" conditions in order to be able to use those .Count funcions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everyone, I've got a problem with a kind of puzzle game I'm trying to make. On each screen there are some balls that the player has to destroy (think of something a bit like puzzle bobble). I'm trying to make a counter to see how many balls are on the screen at each time, but I can't find the right funciont to do it. Until now, I was using something like this:

    System / Every tick

    System / Pick all "ObjectA"

    System / Pick all "ObjectB" -> Variable Set var to objectA.Count + objectB.Count

    I then dump that var into a text object on screen each tick.

    The problem is that when there are no instances of ObjectA, for example, the counter just stops working. Is there any other way to count how many instances of more than one object type are there?

  • 5 posts