Is there a way to deactivate physic collisions using rules?

kapserkapser Member Posts: 458
edited November -1 in Working with GS (Mac)
I'm re-coding every actors of my game to be able to make custom scene reset. Everything is working fine yet but collisions.

When I use a rule with a collision behaviour, it doesn't seem to take account of my rule. Is there any way to de-activate collisions?

I'm trying to have an actor dissapear instead of destroying it, any good methods of doing so? Only way I'm thinking of is teleporting somewhere in the corner of the map but there has to be better ways. Any ideas?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If you put your collide behavior in a rule it should only collide when the rules conditions are meet. I have noticed though a delay in the off and on of the collision behaviors.
  • StormtrixStormtrix Member Posts: 256
    Basically your looking to 'recycle' your actor.. do search in the forums and you'll find lots of posts.
    change or interpolate the x,y of your actor off the camera scene and back on when needed.
  • kapserkapser Member Posts: 458
    Oh I guess there was simply something wrong in my code then, thanks!

    edit: yeah.. that was a stupid mistake of actor being in wrong tags.

    I think the delay is that it will only affect once it stops colliding with the actor.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I've had it delay in activating the collide also. nothing I couldn't overcome but it was mostly annoying.
  • kapserkapser Member Posts: 458
    Yeah a little, I can actually keep pushing the object untill my actor stop colliding with it, which can cause some issues.
Sign In or Register to comment.