Random movement for crowd
ArcticSquire
Member Posts: 14
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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
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.
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
yeah sorry, heres a better one:
https://www.dropbox.com/sh/xe04u7v3v9835l8/AACfEU-U7gKy76TPEL1bNNqza?dl=0
@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.