-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a new tile to a layer, in addition to changing the GID #44
Comments
Its not possible to add new tiles. Just change them. Sorry.
Enviado desde mi iPhone
… El 1 dic 2018, a las 7:12, Nicholas VanCise ***@***.***> escribió:
I've been playing around with the setTileGid:at: method and I noticed that it does not add a new node to a layer, it only allows you to change the tileset. I was wondering the general steps that should be taken in adding a new tile into a layer at runtime, specifically how to perform the operations in removeTileAtCoord: in reverse.
Thank you in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If you don't mind me asking, could you explain why? I know that the removeTileAtCoord: method does remove a tile from a specified layer. What I am trying to accomplish is to have a set of tiles in a layer, make them "passable" for my character, and then make them "unpassable" after the character has moved past them. |
To be honest, I think you could do that changing the propierties of the new tiles. No need to add new ones to the layer. Anyway I have abandoned this library in favour of Godot Engine. Sorry.
Enviado desde mi iPad
… El 1 dic 2018, a las 22:05, Nicholas VanCise ***@***.***> escribió:
If you don't mind me asking, could you explain why? I know that the removeTileAtCoord: method does remove a tile from a specified layer. What I am trying to accomplish is to have a set of tiles in a layer, make them "passable" for my character, and then make them "unpassable" after the character has moved pat them.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Generally speaking, I have used a separate layer with "invisible" tiles that controls if things are passable or not, then would change the layer properties as msxnake mentions rather than adding or removing tiles directly. |
I've been playing around with the setTileGid:at: method and I noticed that it does not add a new node to a layer, it only allows you to change the tile texture/GID. I was wondering the general steps that should be taken in adding a new tile into a layer at runtime, specifically how to perform the operations in removeTileAtCoord: in reverse.
Thank you in advance.
The text was updated successfully, but these errors were encountered: