Problems with collisions

krousty_batkrousty_bat Member Posts: 48
edited November -1 in Working with GS (Mac)
Sometimes, thing can get frustrating :)
I would like to post this, not to complain, but to bring a "bug" I try to understand, or at least to report the best i can.

I have several actors on my screen, they have a Circular collisions, except 4 walls, with square collisions.
I have an Actor A, when entering into collision with any other actor, it will destroy it.
SO the rules are pretty simple, Each actors contain:
"if touched or collision with Actor A, then "Destroy" (themself).

When i play, it works MOST of the time, and that's my problem... the MOST...
how come this is not working ALL the time...

To be able to "debug" a little bit, when the main actor is touching another one, I "display text" a +1 value, and I video capture myself to be able to check frame by frame what is going on to be sure.

I have few videos that, for unknown reasons, everything is working until my actor will touch a random same other, will start to display text exponentially (so it prove both are touching) without killing the actor it's touching (so that's why values are constantly getting higher, for it's constantly touching each other)...
So it's working, but not all the time... wha, whaaaat ?

I tried and check, over and over, and it does not make sense at all, their is no other rules, it's just... happening.

THe only thing I was able to find is that it SEEMS to happens when the speed of them touching is very SLow.
this is of course a complete guess that has no proof at all, just me trying to find a bug or explanation on something that is so random.

Let me know if you ever met the same kind of problem, or if Game Salad in V9.1 is known for still having some issues with colision or rules or else that can here be a factor...

Thx

Comments

  • krousty_batkrousty_bat Member Posts: 48
    -----------

    Actor A

    Display Text "self.Number_of_touch"

    Rule ALL:
    Actor receives Event Overlap or collide . with "actor of type" "Actor B" AND
    Attribute self.neutral is false
    then
    Change Attribute "self.Number_of_touch" to "self.Number_of_touch+1"

    Rule:
    Attribute "self.Number_of_touch" is > 20
    Destroy

    -----------

    Actor B

    Rule All:
    Actor receives Event Overlap or collide . with "actor of type" "Actor A" AND
    Attribute self.neutral is false
    then
    Destroy

    Rule All:
    Actor receives Event Overlap or collide . with "actor of type" "Actor B" AND
    Attribute self.neutral is false
    then
    Attribute self.count_neutral = Attribute self.count_neutral +1

    Rule
    If Attribute self.count_neutral >5
    then
    Attribute self.neutral =true

    Sometimes, they touch each other, and none of them is disappearing,
    but the incremental number displayed IS definitely getting up.

    EDIT1: Sometimes, they disappear BUT the display text number is not increment up either.

    Another thing: I thought that it was caused by the fact that several touch was happening at the same time (when touching a wall AND touching an Actor A, but it does not seems to be that true...)

    My only guess would be the number of actor, but even this can be contested, I'll check on my video, but I think I have some with few actors on my screen and this is happening anyway.
Sign In or Register to comment.