Overlapping tiles

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Overlapping tiles

#1

Post by Josh »

I know its currently not supported. But is it possible in future to have overlapping tiles, or is it not possible because of the game engine?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Overlapping tiles

#2

Post by Bearbear76 »

I'm dummy
What do you mean exactly

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#3

Post by Josh »

Place a tile with a roof going over another tile

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Overlapping tiles

#4

Post by Bearbear76 »

Josh wrote:
17 Aug 2017, 02:23
Place a tile with a roof going over another tile
Ok

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 857
Joined: 16 Dec 2016, 02:38
Location: Germany
Plugins: Showcase Store

Platform

Re: Overlapping tiles

#5

Post by mdk_813 »

Josh wrote:
17 Aug 2017, 02:23
Place a tile with a roof going over another tile
I'm not sure what you mean by "roof" but if I understand you correctly, I think you want something like this:
overlapping_tiles.png
overlapping_tiles.png (18.51 KiB) Viewed 2880 times
Is that right?
Would be certainly cool, but is it even possible?

User avatar
malsa
Inhabitant of a Multiverse
Reactions:
Posts: 5085
Joined: 10 Feb 2017, 17:40
Location: Malaysia
Plugins: Showcase Store
Version: Beta

Platform

Re: Overlapping tiles

#6

Post by malsa »

mdk_813 wrote:
17 Aug 2017, 17:32
Josh wrote:
17 Aug 2017, 02:23
Place a tile with a roof going over another tile
I'm not sure what you mean by "roof" but if I understand you correctly, I think you want something like this:

overlapping_tiles.png

Is that right?
Would be certainly cool, but is it even possible?
I mess up your drawing
overlapping_tiles.png
overlapping_tiles.png (25.41 KiB) Viewed 2879 times

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 857
Joined: 16 Dec 2016, 02:38
Location: Germany
Plugins: Showcase Store

Platform

Re: Overlapping tiles

#7

Post by mdk_813 »

How nice of you.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#8

Post by Josh »

@mdk_813 thatd right

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Overlapping tiles

#9

Post by Lobby »

It's not dependent on the engine but on the way we draw tiles. For performance reasons I don't use a depth buffer but draw tiles directly from back to front (also, it wouldn't be a good idea to mix zbuffer with transparent drawing). In this process tiles in front of others will overdraw them. I'm not sure why you would want tiles to overdraw tiles in front of them.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#10

Post by Josh »

For example to create tol stops at the highway

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#11

Post by Josh »

But I think its going to be buggy, thank you Lobby for the information, but you don't have to spend time on that :bc

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Overlapping tiles

#12

Post by Lobby »

You might create a special road for toll which has a toll grafic defined using fg animation instead of animation.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#13

Post by CommanderABab »

What is fg animation Lobby?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Overlapping tiles

#14

Post by Lobby »

Animation for road that will be drawn in front of cars :teach

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#15

Post by CommanderABab »

So it could be used like this?

Code: Select all

{"id":"ccab.an.b.8.agreen","type":"fg animation",
"author":"CommanderABab",    "width":8,"height":8,
    "frames":[ {"bmp":"16x16blue.png","w":512,
"target w":256,"target h":128,"handle x":-768,"handle y":529,"offset x":0,"offset y":0,"count":1} 
]
},
...
"fg animation":[
    {"id":"ccab.an.b.8.agreen"}
]
Or how?

And what does fg stand for? Final gather?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Overlapping tiles

#16

Post by Lobby »

It has to be "animation fg", fg stands for foreground

In case you want to define for which frames which animation should be used you can define a frame animation fg indices array similar to that one for animation.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#17

Post by CommanderABab »

Thanks! I will experiment. :)

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Overlapping tiles

#18

Post by Josh »

@Lobby can you provide a code exanple with a picture in the documentation thread?

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”