Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DarkBasic moving objects

Author
Message
AlexJo
14
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Ghidighici, Moldova
Posted: 23rd Jun 2012 11:38
i need to make train moving on the rails. how to do this?
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Jun 2012 17:32
humm
kinda hard to explain
but the easiest method is using all of it in some modeling program along with the train animation of moving.

Advanced Updater for your games!
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 24th Jun 2012 21:02
not very difficult. make sure the tender is the same as the rail object rotation.

Daniel wright 2311
User Banned
Posted: 25th Jun 2012 01:59
1. model a track and a train
2.animated it
3.load object
4.loop object or play object.


my signature keeps being erased by a mod So this is my new signature.
Jediam
14
Years of Service
User Offline
Joined: 14th Apr 2012
Location:
Posted: 25th Jun 2012 02:53
You could look into DarkAI. It talks about "pathfinding". I never tried this before, but you could probably designate a path by creating two hidden walls (could be any shape as long as they are on each side of the path you want) and placing the train model between them. The AI "pathfinding command(s)" should then go from point A to point B, while staying within the walls. If you create a looped track and set point B = A, the train should (in theory)should follow the loop. If you want the train to repeatedly circle the loop then the pseudocode might look something like this:

Good Luck. Let us know how it turns out

Login to post a reply

Server time is: 2026-07-08 01:55:49
Your offset time is: 2026-07-08 01:55:49