How to check if not colliding with another actor?

dre38wdre38w Member Posts: 79
edited November -1 in Working with GS (Mac)
I'm wondering if it's even possible to check if an actor isn't colliding with another actor? Thanks.

Comments

  • wouterwouter Member Posts: 174
    make an attribute collide
    and then if actor collides with actor 2 set collide to 1, else 0?

    don't know if there's another way;)
  • RHRH Member Posts: 1,079
    I've not come across an attribute or direct way for it but you could create a new tag and put every actor in it. Then on the actor create a rule that when actor overlaps or collides with actor of tag and leave it blank.

    In the otherwise section put change attribute game.notoverlapping to true or the rules that you want to happen when it isn't overlapping (no need to an extra attribute this way).
  • dre38wdre38w Member Posts: 79
    Ah. Makes sense. If that's the case then what I'm trying to do for my game will work. In theory. haha Thank you.
  • dre38wdre38w Member Posts: 79
    @RH: I'll try that too. Thank you.
  • RHRH Member Posts: 1,079
    No worries, they're exactly the same but by creating a tag you don't have to put a + when collides with for every actor.
  • dre38wdre38w Member Posts: 79
    wouter's method works perfectly!! Don't know why I couldn't get that. I've been doing that a lot lately. Making it harder than it needs to be and when I get the answer it's like "Really? You couldn't get that?" haha Stress is a factor in unclear thinking. Thank you guys!! You all are very appreciated. =D
  • dre38wdre38w Member Posts: 79
    @RH: Yeah understandable. Just for what I was trying to do specifically wouter's method works perfectly.
Sign In or Register to comment.