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.

Author
Message
AlexJo
14
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Ghidighici, Moldova
Posted: 28th Jun 2012 21:13
how to make train moving on rails, train tyrn, etc
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 29th Jun 2012 00:10
i think u already made a thread about it.
and the answers are still the same.
the simpelest way is to use some 3d modeling program to create a train animations above the rails
export the train and rails as 2 different objects and connect both of them on your game.

Advanced Updater for your games!
Leonid
User Banned
Posted: 29th Jun 2012 18:30
make DIM(x1,y1,x2,y2) for every rail. Train must be standed at these points.
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 29th Jun 2012 18:57 Edited at: 29th Jun 2012 21:02
Railway doesn't have to be 2d. It can be 3d as the rail can go up and down.
As I mentioned to you in previous thread keep the tender rotation at each rail part rotation. If you are trying to create 3d rail then I believe you better use ez rotate plugin.

I will try to find some time next week. To make simple example for you.

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Jun 2012 18:57
You could use Sparky's sliding collision on the tracks, and wheels. It makes things a bit easier.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 29th Jun 2012 22:36
Hi there.

We can make an animation object with its path as Sergey K suggested and then just play the animation and adjust speed. If we like challenge of doing that with code, we can spread out some waypoints all the way we want the train to go. I take some code from a snake game I made time ago. I hope it can help someone.



Cheers.

I'm not a grumpy grandpa
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 30th Jun 2012 03:03
I really like this one... check out the "heat waves" effect, very clever!

http://www.youtube.com/watch?v=i_WHG8CGhl8&feature=related

D.D.
Leonid
User Banned
Posted: 30th Jun 2012 09:51 Edited at: 30th Jun 2012 09:53
I had makind a mistake. DIM (number_of_rails,4) AS DWORD. Number_of_rails=1000 if you want to make a small game, positions: DIM (n_o_r,1)=x1 (x-beginning of rail), DIM (n_o_r,2)=y1 (y-beginning of rail), DIM (n_o_r,3)=x2 (x-end of rail), DIM (n_o_r,4)=y2 (y-end of rail). You can make 3D rails too: DIM (n_o_r,6) AS DWORD.

Login to post a reply

Server time is: 2026-07-07 19:10:48
Your offset time is: 2026-07-07 19:10:48