How to disable collision between the same actors, after something happen?

scrapee_netscrapee_net Member Posts: 424
edited November -1 in Working with GS (Mac)
I got a problem.
I have a lot of the same actors on the screen. But, I'd like when one of the actors colide with one danger object, they won't collide anymore, with anything...

I tried even, changing their tag, after collision. But, the collision continues to happen.

How can I do?

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    I had to spawn a new actor in place of the old one. The first actor had the physics set one way, the spawned one was a different actor with physics set another way (ie: no collision). Make both the same image and do a rule .. when actor collides with ... spawn new actor in the same spot and destroy the first actor.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Create a game.attribute (boolean) if you want it to make all of them stop colliding or a self boolean if you want it to affect individual actors.

    Have a rule in the main prototype of the actor that says when collides with danger change game.NoCollide to 1

    Second rule:

    When game.NoColide is FALSE
    ----colide with _________
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    simo103 said:
    I had to spawn a new actor in place of the old one. The first actor had the physics set one way, the spawned one was a different actor with physics set another way (ie: no collision). Make both the same image and do a rule .. when actor collides with ... spawn new actor in the same spot and destroy the first actor.

    This will not be good for FPS or memory
  • simo103simo103 Member, PRO Posts: 1,331
    scitunes ... right ... my case was a little different from this one I guess as I needed to move a bomb and place it on blocks which needed to be moveable and bounce/collide when the explosion happened but not when I moved and placed the bomb in the scene.

    Feedback I got at the time was I couldn't change the physics of an actor during gameplay. In sabaterwb's case ignore me and follow scitunes advice .
  • scrapee_netscrapee_net Member Posts: 424
    scitunes said:
    Create a game.attribute (boolean) if you want it to make all of them stop colliding or a self boolean if you want it to affect individual actors.

    Have a rule in the main prototype of the actor that says when collides with danger change game.NoCollide to 1

    Second rule:

    When game.NoColide is FALSE
    ----colide with _________

    I have something similar created. But it doesnt work because, the actors of the same kind, that didnt colide with the danger object yet, have a rule to collide with actors of the same kind.
  • as7494as7494 Member Posts: 70
    im looking for something very similar except to try and count the actors colliding.
    @sabaterwb the same behavior happens to me when i use a rule to try and change an integer; when I 2 actors collide at the same time with the other actor, only 1 actor registers. They are the same type just as yours.
Sign In or Register to comment.