removed

Blitz3D Forums/Blitz3D Programming/removed

Caton(Posted 2016) [#1]
I have not idea how to make a 3d tile map editor.
and editing tile data on current tile like scaley or tile data type

I know how to read and create tiles. just not edit tiles or add thum I know how to add height and width.


RemiD(Posted 2016) [#2]
First you need to decide what you want in your map.

For a map of 100width,100depth at the same level (same height), you could use a 2 dimensions dim array to store the properties of each tile :

Tile_Kind%(99,99) or Tile_Name$(99,99)
Tile_State%(99,99)
Tile_Mesh(99,99)

To create/select/delete a tile you could pick a plane of 100w,100d and once you have the picked position (x,y,z) you can use floor(x) to know the x coordinate of the tile and floor(z) to know the z coordinate of the tile.
Then you can access the tile and its properties like this :
entitycolor(Tile_Mesh(x,z),255,000,255)
Tile_State(x,z) = CSelected ; or CNotSelected

Good luck


Caton(Posted 2016) [#3]
removed


Matty(Posted 2016) [#4]
Hi Caton.

There are some very helpful people on these forums (often they give more help than what paid support would be for many products - freely as well)....but simply dumping a huge chunk of code and saying "I need help with it" is not going to win you many friends.

You need to be more specific in what you ask for.

You need to ask the right questions.

And you need to walk before you can run, ie don't bite off something huge - take steps learning how to do things so that you can solve them on your own eventually.


Caton(Posted 2016) [#5]
that's fine I will have to find a way to fix the code myself then.
but nerve will get 3d tile map editor