Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,209 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
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 | chip programmers | 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