Again, having weird "rule" problems with GS.

cbtcbt Member Posts: 644
edited November -1 in Working with GS (Mac)
Hi guys,

Let me explain the situation;

-I have balls (be serious) that shoots when I click until it hits the "wall".
-When it hits the "wall" it changes "self.X" to "game.X" and "self.Y" to "game.Y"
-And balls start at game.X - game.Y

And, here is the video to make it visual


Now, when I do:

-If "self.X" = "game.X" and "self.y" = "game.Y"
***Display "YES"
-Otherwise
***Display "NO"

It displays "YES" until it shoots, as it should do. No problems here.

But when I change "=" to "not equal" things get messy. It AGAIN displays "YES". A second ago, it said that "YES, position X and Y equals to game X and Y" but now it says the exact opposite.

Either I'm missing something so simple that will make me look stupid or "not equals" does not work.

Any clues?

Comments

  • cbtcbt Member Posts: 644
    Tried everything..

    Changed the "game.X and Y" to real and integer and than tried.. (it's a common mistake in C and C++. Position 240 and 240.0 are not the same in some languages.)

    Removed all rules that may interfere, put a simple "Change Position" and than tried.

    That is for sure, "!=" is not working well.
  • POMPOM Member Posts: 2,599
    You are messing around with the Achilles heels of GS , "Not equal" AND "Display text" together ,
    Bug are guaranteed !

    I think your logic is fine , and its a gs issue but who knows
    Does your actors movable? are they spawned or recycled ?
    If they recycled , what rule do you use to stop them in GameX/Y , ? Are you sure they totally stops?

    Roy.
  • cbtcbt Member Posts: 644
    p-o-m said:
    You are messing around with the Achilles heels of GS , "Not equal" AND "Display text" together ,
    Bug are guaranteed !

    I think your logic is fine , and its a gs issue but who knows
    Does your actors movable? are they spawned or recycled ?
    If they recycled , what rule do you use to stop them in GameX/Y , ? Are you sure they totally stops?

    Roy.

    Quite sure. I'm just using "Change Attribute".
    Sent it over to bug report.

    I'm using "Display text" just to see if things work or not...
    I figured a workaround but, it would be much easier if "Not equal" worked :)

    Thanks anyway p-o-m!

    (Did you know: "Achilles is an embodiment of the grief of the people"..)
    :D
  • 8x8n88x8n8 Member, PRO Posts: 81
    I can only hope those purple sperm in your avatar are what shoot out of your balls (be serious).
Sign In or Register to comment.