Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,502 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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: 931
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 931
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