Random movement for crowd

So i have a game where i want the crowd to each move in random directions [ random(1,4) ]. The problem i am having is them colliding. If two members of the crowd collide i want them to stop and then move in another direction. I have got it partially working but definitely not properly, it works sometimes then others it gets stuck between two etc. im sure theres a simple fix.

Please help, thanks.

Comments

  • ArmellineArmelline Member, PRO Posts: 5,369

    Perhaps if you show us what's happening now, and then explain what you want done differently it might help. Right now it's hard to know what you're really wanting to happen.

  • ArcticSquireArcticSquire Member Posts: 14

    Yeah, heres the project file. Pretty new to GS so i'm still getting to grips with everything. Collision seems really strange to me.

    http://www.filedropper.com/crowdgameproj

  • SocksSocks London, UK.Member Posts: 12,822

    It's not clear from your question what you are trying to achieve.

    "If two members of the crowd collide i want them to stop and then move in another direction"

    Can you be any more specific, for example do you want them to move in a random direction, to move in the opposite direction or maybe move to one of the other 'collision' squares ? 'another direction' could mean anything.

  • floatingwoofloatingwoo Los Angeles, Calif.Member Posts: 393
    edited June 2015

    Geez dude, I want to download your file but theres so many gotchas on that site I wouldn't know where to click. Maybe try TinyPic or something less

  • ArcticSquireArcticSquire Member Posts: 14

    @Socks id like them to move in another random direction that isn't the one it was going when it collided. I trying to sort it myself, and have a weird version were 1 collision works, but if it collides with another it goes straight through.

Sign In or Register to comment.