Giter Club home page Giter Club logo

tileset_plugin's Introduction

tileset_plugin

A plugin for the Godot Game Engine, to help creating/changing tileset scene. asset library tilesethelper

Howto

create tile with a StaticBody2D and collisionPolygon

set_collision_polygon

create multiple tiles with Collision, Navigation and LightOccluder nodes

multicreate

multi select tiles

multiselect_

Create tiles from one image

create_tiles_from_one_image

Instalation

  • create addons folder in project
  • copy tileset_plugin folder into addons folder
  • open project settings and activate plugin

tileset_plugin's People

Contributors

leobeosab avatar puppetmaster- avatar teddydd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tileset_plugin's Issues

Mipmap/filter/tilles-less loading

Currently ImageTexture is created with default flags, meaning mimaps and tiling is enabled. Leading to imported being blury and having wrap-around artifacts, esp when scaled. I would think that that is mostly undesired, and there should be at least an option to disabled them. I'm quite new to godot and gdscript, and a bit lazy to contribute full patch with ui changes, still I made local modification to load without mipmaps and wrapping (names are also not great for vars, still hopefully that is useful):

diff --git a/addons/tileset_dock/tileset_dock_plugin.gd b/addons/tileset_dock/tileset_dock_plugin.gd
index ee890d2..15803f0 100644
--- a/addons/tileset_dock/tileset_dock_plugin.gd
+++ b/addons/tileset_dock/tileset_dock_plugin.gd
@@ -230,8 +230,10 @@ func addImageNodes():
        print("creating ",imagesPath.size()," sprites from selection")
        var _root =  get_tree().get_edited_scene_root()
        for _path in imagesPath:
+               var _img = Image()
+               _img.load(_path)
                var _image  = ImageTexture.new()
-               _image.load(_path)
+               _image.create_from_image(_img, 0)
                tileSize = _image.get_width()
                var _imageName = getFileName(_path)
                var _spriteNode

Update to support Godot 4

Are there any plans currently to update this plugin to support Godot 4? I am interested in using this plugin for a current project, and I have started porting it myself. If it's ok I can submit a Pull Request of the ported version to this repo.

add 1d index numbering system

please add 1d numbering system starting from 0 naming like so
tile_0..
tile_1..
tile_2..

and please when using 2d numbering system use name them like so..
tile_0_0..
tile_1_0..
tile_2_0..

it won't work with tilesets of 1 column

thank you for providing this awesome tool!

I got this Tileset with 4 tiles of 16x16px each and placed vertically in one column:
tileset

When I type 16 on the field SIZE the FRAME field remains disabled.
image

If I create the same Tileset with 1 row then it works:
tileset

image

shift created nodes

When the nodes are generated, it could be nice to dispose them next to each other.

unable to start plugin (no docs)

thanks for this plugin!
I am using any godot plugin first time, followed all instructions given but no clue how to see start plugin,where to start seeing what is shown in first snapshot

[Feature request] Automatic placement of tiles during generation

We already talked about this in chat, I'll just save it here for future generations. When generating tiles it would be nice if each tiles would be placed next to previous one, not on top of it. Just add set("rect/pos", Vector2(tilecount*32,0) during iteration. Maybe even switch to a next column after set amount of tiles.

Packaging your plugin for the assetlib

You can submit it via https://godotengine.org/asset-library (alpha frontend, expect some bugs/UX issues).

When you submit a download link, remember that the sha256sum of the zip archive is used to validate the asset (so that moderators don't validate an asset that would later be turned into something bad, each new version has to be moderated). So to prevent the download from being invalidated at your next commit, don't use the zip archive of the master branch, but instead of the latest commit: https://github.com/puppetmaster-/tileset_plugin/archive/fb5b8e09dcb3d8e4b0123b34b030164172fa4e5d.zip
(or tag a version).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.