Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (JeyKey II, TipmyPip, AndrewAMD, 1 invisible), 15,604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Random movement? #242963
12/26/08 19:18
12/26/08 19:18
Joined: Sep 2005
Posts: 75
CA, Orange County
Gerrit Offline OP
Junior Member
Gerrit  Offline OP
Junior Member

Joined: Sep 2005
Posts: 75
CA, Orange County
Hi everyone,
I would like to create a game where the player has to try to catch dogs running around in a labyrinth. I did study (to some extend) the possibilities with paths and nodes but I wonder if that is the best way to let these dogs in a “random” way run around. Obviously it would not be very realistic to let them hit walls (and other obstacles) before they change direction but following a path seems to take the randomness completely away.

Any idea how I should solve this? Perhaps multiple paths and select one randomly? Perhaps no paths and let the dogs run around and use c_scan to avoid hitting obstacles?

I am not looking for someone to solve my problem but I would appreciate some suggestions to help me on my way

Best regards

Gerrit

Re: Random movement? [Re: Gerrit] #243128
12/28/08 08:03
12/28/08 08:03
Joined: Sep 2003
Posts: 938
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 938
Use a path with many branches, and when a dog reaches a node with 2 or more branches, use random() for taking one of the branches.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1