What expression should I use?

efishefish Member Posts: 40
edited November -1 in Working with GS (Mac)
I'm having an actor move along the x-axis. My goal is to destroy it if it is touched anywhere in between position.X: 140-170. What expression should I use?
Thanks a lot!

Comments

  • JGary321JGary321 Member Posts: 1,246
    If self.position.X >139 or <171 & touch is pressed

    destroy
  • efishefish Member Posts: 40
    perfect, just what I was looking for. I thought it had to be something with (140,170), but this method worked great.
    Thanks!
Sign In or Register to comment.