Bermooda's Forum Posts

  • 8 posts
  • This could do it.

    Start of layout

    For each block ordered by random(1) ascending

    System compare: loopindex<3

    --- wait 1.5*loopindex

    --- array set at loopindex to block.uid

    --- block flash for 1.5 seconds

    Awesome! it worked! thank you!

    something weird happened at first though; when I wrote your code and ran it, all the blocks were flashing quickly and funny, I closed construct 2 and reopened it and it worked!

    Thank you everyone for your answers

  • note: I also added a "Wait 1.5 seconds" at the end of the actions, no luck.

  • Actually, I think your code is correct (however, i don't understand the "add 1 to index" action)

    You just have to change the flash values: write "random(0.1,0.3)" instead of "0.2" in the flash parameters.

    The sprites will flash at random speeds.

    I think I kind of confused you too with my question

    What I meant was that I'm trying to make them flash one at a time, for example:

    block(1) -> flashes [block(1) is randomly picked]

    then wait 1.5 seconds

    then block(2) -> flashes [block(2) is also randomly picked]

    then again wait 1.5 seconds

    then block(3) -> flashes [block(3) is again randomly picked]

    in the meantime as each of the blocks are picked I want to add their UID to the array (that's what the "index" is there for!, each time it adds the UID to array it increases the index of the array by 1)

    as I said I'm a beginner at this so please let me know if I misunderstood any of these.

    Thanks

  • Hi all,

    I'm getting a little confused here; I have 6 instances of an object (named "BlockNumber"). I want to make three of them flash randomly each 1.5 seconds. (three objects are picked randomly) I wrote this code in the events section but it makes those three flash all together at the same time. I'm a beginner in construct 2 and I have no idea what I'm doing wrong

    Thank you in advance

    Here is the code:

    EDIT: almost forgot, I also want to save the UID of the picked object to the "Array". thanks again!

  • Thank you for your replies, they helped a lot

  • 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 was wondering if it's possible to delete a specific animation frame FROM the Event Sheet.

    for example:

    If(this.happens) then (delete.animationFrame.number.2)

    Thank you in advance

  • Hi Everyone!

    I'm new here and I'm totally in love with Construct 2

    This is my first game called Tap Tap! Please feel free to share your thoughts about it, thank you!

    And since it doesn't let me include links I'll just do it like this

    htt

    ps:/

    /dl.dropboxusercontent

    .com/u/92478049/construct%202%20projects/

    Tap%20Tap%201.6%20(HTML)/index.html

  • That was great. loved the art and animation. Good job!

  • 8 posts