User Tag List

Results 1 to 9 of 9

Thread: connectable roads

  1. #1
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    connectable roads

    Hi I am working on an isometric engine which is going to allow the user to create roads during the game.

    I have thought about it long and hard and am interested in finding a simple yet effective way of making roads 'connect' when they are placed next to another road tile.
    A good example of this is in the game Transport Tycoon.

    My active object will contain 14 road pictures (one for each possible connection that can occur), i just need to find a good, simple code that will allow me to detect if the tile has been placed next to an existing road tile.

    I should also mention that all data is stored in an array.

    Any suggestions? (please do not suggest using sensors to detect objects...)

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    I recall seeing an example of exactly what you are asking on TDC (www.create-games.com). If I find the link I'll post it.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    I already had a look there but if you can find it I would greatly appreciate it!

    EDIT: Is this the link?? http://www.create-games.com/article.asp?id=1869
    It looks pretty cool i might test it out

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    A road piece with 4 edges can have a total of 16 different variations... Or are you excluding some?

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    "A good example of this is in the game Transport Tycoon."

    Well, in transport tycoon you actually have to do in manually :P

    But if you want it automatically, when you place a piece of road, scan the 4 tiles at each side of it and change them accordingly!

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    A better example of automatic connecting of roads is Sim City (all of them).

    I also recommend checking out OpenTTD if you're a Transport Tycoon fan.

  7. #7
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    I tried to make an example it's harder then i thought, i can't wait to see a working version.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    bigredron, that example is exactly the one that I was talking about. Good Luck with your project!

  9. #9
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: connectable roads

    yes i mean 16 peices. I forgot 2 lol

    Does anyone have the images that are missing in the TDC link i posted above?? it shows what images should be where, otherwise I have to do some testing to find it out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •