something is wrong, please read

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
hello
i notice a very strange behavior in gamesalad,
i create an actor and pot it on : positionX = 0
i make a rule:
WHEN X < 80
constrain selfX to selfX+4
isn't that mean the actor should stop on 80 ?!?
because it stops on 88?

it always make 2 more cycles than it should be doing. no matter what the values are

am i doing something wrong?

Comments

  • ChaserChaser Member Posts: 1,453
    To me it sounds like if you start at 0 then it should be at 4 and any time it's less than 80 it should add 4 but it sounds like you probably have more rules that we don't know about perhaps an otherwise
  • POMPOM Member Posts: 2,599
    only the rule i mentioned above, no more rules and no otherwise.. =\
  • ChaserChaser Member Posts: 1,453
    You might need an otherwise because in theory it should stop at 80. Ex otherwise if self x =80 constrain self x to current position. I'm not home to test this but something like that
  • POMPOM Member Posts: 2,599
    new project.
    1 actor.
    1 rule.
    the same result.

    the thing is i want my actor to move from start position to different X (simple as that)
    i tried "move to" behavior but it sometimes seem to miss the target and continue to move.
    and now this problem, i can always change 80 to 72 and it will go 2 more times to 80
    but it just wrong code programing
  • ChaserChaser Member Posts: 1,453
    I haven't used the interpolate option yet but hear it helps with the endpoint location issue some are having
Sign In or Register to comment.