nullbert's Recent Forum Activity

  • Thanks for the suggestion.

    Is it possible to reduce this time to start the sequence, but keep the same time as the display interval for the other circles?

  • Do you know why it's taking so long to start the sequence? It's one of the timer event values, right?

    Could you give me a suggestion on how to display on the screen afterwards which objects the user chose, and which were the right and wrong ones, and which ones the user should have clicked on? I think that in this case I would have to compare each object generated by the system with each object clicked by the user following the right order and then display the ones that had been generated but not clicked.

    Maybe I have to use an array for this, right?

  • Thanks dop2000

    It's working.

  • I was wrong. The problem still persists.

    I understand that you won't be able to understand what I did until you see the file and here it goes:https://www.sendspace.com/file/zq11it

  • Actually you don't need to know about Simon Says. I showed you the code I did according with your suggestion and I just need to understand what I am doing wrong.

  • I followed your instructions but the result is pretty weird. Sometimes it shows 4, sometimes it shows 3, and only sometimes it shows 5 and it takes a long time to start

    My code:

    * On function 'seq'

    ----+ System: Repeat 5 times

    --------+ System: Pick a random object instance

    ---------> System: Add 1 to seq

    ---------> object: Set id to seq

    ---------> object: Start Timer "time" for 1+object.id×1.5 (Once)

    + object: On Timer "time"

    -> object: Set animation frame to 1

    -> System: Wait 1 seconds

    -> object: Set animation frame to 0

  • Thanks! I will give it a try.

    Regarding the sequence, could you give an example of this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you tried that link I posted above? You can create and randomly distribute all objects pretty much instantly - in one tick.

    I still have a problem knowing when all the objects are already positioned on the screen, even using the example you suggested

  • In fact, I had used another one that prevented overlapping, but after you said it, I went to see it and this one also has an example that does that. It works really well, thanks.

    Regarding the sequence, would you have a link to an example?

  • I decided to create the objects randomly and check if they are overlapping to set a new position. As there will be times when there will be several objects, sometimes it takes a while until they are all positioned correctly. There's no way to avoid that, right?

    A problem I'm encountering is that I don't know the exact moment when the system finishes positioning all the objects, so I can start displaying the sequence. I am using this code to check it:

    + object: [X] Is overlapping object

    + System: objAmount = 22

    -> System: Set group "G22" Deactivated

    -> System: Set objAmount to 0

    -> System: Call function start

  • Thank you. I will check it.

    I also have doubts about how to make the initial sequence of 5 random circles be shown at an interval of 5 seconds. I imagine you should use a loop for that. How should I identify the circles, preventing any repetitions from being shown? How to check if the user clicked on a wrong circle without waiting for the sequence to end?

  • Thanks for the suggestion. But how to prevent them from overlapping?

nullbert's avatar

nullbert

Member since 3 Dec, 2022

None one is following nullbert yet!

Trophy Case

  • 1-Year Club
  • Email Verified

Progress

2/44
How to earn trophies