Spawned actor does not collide

EsayemEsayem Member Posts: 8
edited August 2012 in Working with GS (Mac)
Hi there, having a small issue and will try to explain as best as possible

My scene is set up so that an actor begins falling and when a stop button is pressed, the actor stops. When the actor stops he will be in one of many 'zones' that I have setup to award points depending on the zone you stop the character in. This works fine.

However, to get the actor to stop, I created an identical actor, which is not moveable and spawns on top of and destroys the previous one (giving the impression the actor has stopped). This new actor however doesn't seem to work with the overlap and collide rule I have set up with the individual point zones. Am I over complicating things by spawning a new actor? It was the only work around I could find in terms of stopping the character in mid air.

Thanks in advance


Comments

  • EsayemEsayem Member Posts: 8
    bump
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Hey,
    how do you make the first actor fall down? Which rules do you use? I don't understand why you spawn a new actor to stop the old one?

    Alex
  • ORBZORBZ Member Posts: 1,304
    two non-movable actors will not collide
  • EsayemEsayem Member Posts: 8
    Old actor just falls with an Accelerate action, read an old thread explaining that if I wanted to stop it I would have to replace the old actor with a new one that isn't movable. It works but seems a bit silly.

    Originally I had the actor falling, then created a boolean called 'Stop'

    In the stop button I put a rule that said 'when pressed change Game.Stop to true' and in the falling actor put 'when Game.StopFall is true change attribute self.motion.linear.velocityY to 0'

    This kind of worked but for some reason the falling actor would stop momentarily then continue to fall...thus I tried another work around.
  • EsayemEsayem Member Posts: 8
    two non-movable actors will not collide
    Ah I see, could I ask what the best way to get an actor to stop mid air is then if there is an accelerate action on it? My current method only stops the actor momentarily.

    Thanks for the reply guys, appreciated
  • EsayemEsayem Member Posts: 8
    Right i've sorted the problem, I was being a complete retard. Thanks for the help though!
Sign In or Register to comment.