HenochEinbier's Forum Posts

  • 3 posts
  • finally i got it to work :)

    i used a global variable for each of the 9 possible symbol placements.

    when a symbol is created, i store the UID of the just created symbol in that variable,

    like in the screenshot in my first post.

    then the winline check function determines, which winning line should be activated, and starts the animation of the symbol, picked by unique id.

    so if the slot matrix looks like this:

    147

    258

    369

    the winline in the middle (258) would be adressed like this:

    ...

    thank you all for your help

  • i'm afraid that won't work, because there are 9 different symbols, and all of them can appear more than once, by random.

    i need a way to pick the symbols by their position.

    these are the slot symbol positions (3x3):

    147

    258

    369

    for example, if 258 would be the winning line,

    i need to pick the symbols that are placed there,

    no matter which of the 9 possible symbol sprites it is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi :)

    i created a slot machine using construct 2,

    everything is working perfect, except one problem:

    i can't pick the symbols that are on a winline, to let them blink.

    this is the function, that creates the slot symbol in the position, that it reads from php/json:

    how can i select this object (sprite) by UID in another function, so that i can activate the effect?

  • 3 posts