Files
Super-Mario-Bros.-Remastere…/Scenes/Parts/DecoTiles.tscn
KirbyKidJ 8b5d9afba9 Animated Tilesets for All-Stars Resource Packs
This PR adds animated tilesets! I spent the day working on these, and it wasn't easy. This is primarily to help animate the All-Stars' grass tiles. You should be able to animate the other tilesets as well, but I haven't tested them.

JSONs are provided in the assets for Conveyer Belts and Liquids. There's two ways to animate the tilesets. The first is by the traditional way as used by `AnimatedSprite2D`, and the other is by how Godot animates tilesets normally as seen with the conveyer belts and liquids.

The last thing is that while doing this, I actually managed to fix the Resource Pack bug where reloading also reloads the blocks! It was surprisingly straightforward. I just edited the `BlockClass.gd` file to erase the cells when a block is hit or destroyed.

Let me know if you have any suggestions for things I should change or fix.
2025-09-30 00:04:03 -07:00

42 lines
1.5 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://c145qqkvy8pr5"]
[ext_resource type="Texture2D" uid="uid://cnexuteg5rvye" path="res://Assets/Sprites/Tilesets/Deco/DecoTemplate.png" id="1_lawed"]
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_lawed"]
[ext_resource type="Script" uid="uid://73oviwf6bbys" path="res://Scripts/Classes/Components/TilesetTextureSetter.gd" id="3_mv6fy"]
[ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/Deco/DecoTiles.json" id="4_boeqk"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3eywr"]
texture = ExtResource("1_lawed")
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
3:0/0 = 0
4:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
3:1/0 = 0
4:1/0 = 0
[sub_resource type="TileSet" id="TileSet_b50pv"]
sources/0 = SubResource("TileSetAtlasSource_3eywr")
[node name="DecoTiles" type="TileMapLayer"]
visibility_layer = 2
z_index = -10
tile_set = SubResource("TileSet_b50pv")
[node name="TilesetTextureSetter" type="Node" parent="." node_paths=PackedStringArray("tile_map", "resource_setter")]
script = ExtResource("3_mv6fy")
tile_map = NodePath("..")
resource_setter = NodePath("../ResourceSetterNew")
metadata/_custom_type_script = "uid://73oviwf6bbys"
[node name="ResourceSetterNew" type="Node" parent="." node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("3_lawed")
node_to_affect = NodePath("../TilesetTextureSetter")
property_name = "texture"
mode = 1
resource_json = ExtResource("4_boeqk")
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"