If not overlaping?

HunnenkoenigHunnenkoenig Member Posts: 1,173
edited November -1 in Working with GS (Mac)
How could I possibly set up rules, which tell an actor to do something, if it's not overlaping or colliding with another actor?

Has anybody an idea?

Comments

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    YEs,
    Create a rule
    Overlaps or Collide with the object you want, and you don't put any rule there
    But, you put your rules in OtherWise.

    Hope it helps.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    hey, this seems to be a very unusual solution, but may be working.

    Thanks! :-)
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    If that doesn't work create a boolean attribute.

    When overlaps with ??????
    change game.boolean true
    OTHERWISE
    change game.boolean to false

    Rule 2
    When game.boolean is false
    do blah blah blah
  • RHRH Member Posts: 1,079
    Not unusual at all, thats how i imagined it.

    Or you could create a rule that when overlaps or collides constrain attribute self.overlap to true otherwise constrain to false

    and then when self.overlap is false do X

    EDIT: ooh beaten to it
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Thanks, it works.

    Somehow I had a misconception about else rules.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Hunnenkoenig said:
    Thanks, it works.

    Somehow I had a misconception about else rules.

    What method did you end up using? I have never tried just having the main rule section empty as a way of using the otherwise section. Is that what you did?
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    To be honest, I had two things I wanted to do with this.

    The one I solved with

    If overlaps do this
    otherwise do something compeletely different

    Until now I always thought, I have to make the counterpart rule for "otherwise"

    So I thought I have to make
    if overlaps do this
    otherwise if doesn't overlap do something esle

    ---

    While I was doing this, I forgot, what I wanted to do next :-D
    I am tired.

    I will experiment around tomorrow and then I surely will have something again, because my game concept seems to want to use this often.

    For now, I have no brain for it :-)
  • EmrysEmrys Member Posts: 38
    That is an example of the learning curve for me. I have used level editors, and 3D programs, and have learned - you need to know the package well enough to build the work arounds to make it do what you want.

    Right now I am fumbling through the basics. :)
Sign In or Register to comment.