Does 'Not Equals To' work...

allaboutiweballaboutiweb Member Posts: 42
edited November -1 in Working with GS (Mac)
I am trying to create a non-repeating number generator to act as 'player 2', the user being player 1. At the moment I have a rule on a 'select' button that is pressed by the user after they have picked their number which generates a random number:

When touch is pressed and round number is 1
Change 'player2' attribute to random (1,10)
Change attribute 'round 1 score' to 'player2'
After 2 seconds spawn actor... (this spawns an actor that displays text - Player 2 picked XX click to continue) and then adds 1 to the number of rounds.

I then have another rule on the 'select' button:

When touch is pressed and round number is 2
Change 'player2' attribute to random (1,10) not equal to 'round 1 score'
After 2 seconds spawn actor... (this spawns an actor that displays text - Player 2 picked XX click to continue) and then adds 1 to the number of rounds.

And so on.

It doesn't seem to be working right so does the symbol (I know I used the text in the above example) for not equal to work in the expression editor?

Comments

  • allaboutiweballaboutiweb Member Posts: 42
    Bump! Don't suppose anyone can help can they?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    where or you getting does not equal to? if you mean the < ior > signs with lines under them, thats equal to or greater, and equal to or less , not does not equal to.
  • BackUpAndDownBackUpAndDown Member Posts: 685
    JohnPapiomitis said:
    where or you getting does not equal to? if you mean the < ior > signs with lines under them, thats equal to or greater, and equal to or less , not does not equal to.

    I think he's talking about the "Does not equal" sign...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    BackUpAndDown said:
    I think he's talking about the "Does not equal" sign...

    ahh i see
  • expired_012expired_012 Member Posts: 1,802
    Photobucket Pictures, Images and Photos
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah forgot about that one, long night...
  • frariofrario Member Posts: 164
    Doing another try if equal?

    However, my experience with random is that bruteforce is the only solid answer. There are examples in the shared templates, but you can also invent anew one more suiting your needs. You can keep a little random bruteforce machine outside of the visible area (so you can check it but players don't see).
Sign In or Register to comment.