problem with collide behavior

fenix66fenix66 Member Posts: 59
edited November -1 in Working with GS (Mac)
I have a problem with overlap or collide behavior in rule function.
There is a rule when actor collide with another actor then change self attribute to random 1 or 2.
1 and 2 indicates change of y velocity to 300 or 400.
And the problem is that this rule work 2 or 3 times then stop working.
What is wrong?

Comments

  • rlehmrlehm Member Posts: 320
    With only two options, that's 50/50. You may get the same one 10 times in a row and assume it's broken. If you want it to change everytime:

    If attribute = 1
    Change to 2

    If 2
    Change to 1

    Now it'll change everytime.
  • fenix66fenix66 Member Posts: 59
    But the problem is not with random numbers but with collision.
    It's when ovelap or collide then change attribute and attribute isn't changed everytime and linear velocity of my actor not change so my actor just fly through wall instead of jump.
Sign In or Register to comment.