4ian / GDevelop

:video_game: Open-source, cross-platform game engine designed to be used by everyone.
https://gdevelop.io
Other
6.2k stars 713 forks source link

Fantasy UI Borders - Kenney #6543

Open Kruger77 opened 2 weeks ago

Kruger77 commented 2 weeks ago

Description

Hello guys, I have just finished packaging this asset pack by Kenney I hope it can be useful for you. In the zip file I left the basic sprites voluntarily since they are all panels and also those decorations

D8H commented 5 days ago

Thank you for submitting a pack.

I think it would make sense to package both sizes (default and double) because contrary to Sprite, Panel Sprites can't be scaled by changing the object size. Especially because it sounds like a pack that could be used in pixel-art games as well as HD ones.

Kruger77 commented 5 days ago

Understandable, but you mean Package both sizes still with the Panel Sprite (9-Patch) or just as normal sprites?

D8H commented 5 days ago

I guess the fastest way would be to duplicate the project folder override the PNG files with the other ones and do a search and replace for the margins and size in the project.json with a text editor. This way you don't have any repetitive task to do. It will result to 2 project folders and 2 GDO files, but it's not an issue.

Kruger77 commented 5 days ago

Doesn't this cause problems with panel sprites OBJ since the pixel sizes are clearly different?

D8H commented 5 days ago

A panel sprite configuration looks like this. With some search and replace, you can divide all the values by 2 (starting from the smallest value to the biggest one). For instance, you can search Margin": 32, and replace it with Margin": 16,.

{
  "assetStoreId": "",
  "bottomMargin": 32,
  "height": 96,
  "leftMargin": 32,
  "name": "Border_18",
  "rightMargin": 32,
  "texture": "panel-border-018.png",
  "tiled": false,
  "topMargin": 32,
  "type": "PanelSpriteObject::PanelSprite",
  "width": 96,
  "variables": [],
  "effects": [],
  "behaviors": []
},
Kruger77 commented 4 days ago

although it is something really excellent and efficient not all objects have the same margin and there are some objects that have different margins due to how they have been designated, not remembering which ones I still have to check them by hand one by one, so at this point I redo them all in the same project. I hope to send you everything by the day after tomorrow

D8H commented 4 days ago

You can do a grep and a sort -u to find all the values to search and replace.

Kruger77 commented 4 days ago

i did it. Project.zip there is the project and the new GDO file