>>>>>>>
[PT] Vamos criar um personagem andando corretamente com o Universal LPC Spritesheet Generator. Geramos a imagem "Walk.png" e recortamos os frames automaticamente com um cĂłdigo em Python que eu desenvolvi.
[EN] Let's create a walking character correctly using theUniversal LPC Spritesheet Generator. We generate the "Walk.png" image and crop the frames automatically with a Python script I developed.
[PT] Para nĂŁo alongar o tutorial, vou ensinar apenas como recortar automaticamente a imagem "Walk.png", gerada pelo Universal LPC Spritesheet Generator, usando um cĂłdigo em Python que desenvolvi.
[EN] To keep this tutorial short, I'll show only how to automatically crop the "Walk.png" image, generated by the Universal LPC Spritesheet Generator, using a Python script I created.
[PT] Primeiro passo:
Crie seu personagem no Universal LPC Spritesheet Generator. NĂŁo vou ensinar a montar o modelo para deixar o tutorial mais objetivo. Solte sua imaginação â Ă© bem simples e prĂĄtico.
[EN] Step one:
Create your character using the Universal LPC Spritesheet Generator. I wonât cover how to design the model to keep this tutorial simple. Just use your creativity â itâs easy and intuitive.
[PT] Segundo passo:
ApĂłs finalizar seu personagem, clique em âSpritesheet split animation images, credits, JSON (zip)â para gerar o arquivo compactado.
[EN] Step two:
After finishing your character, click on âSpritesheet split animation images, credits, JSON (zip)â to generate the zipped file.
[PT] Usando o WinRAR, extraia a pasta obtida pelo botĂŁo âSpritesheet split animation images, credits, JSON (zip)â.
Dentro dessa pasta, vocĂȘ encontrarĂĄ os seguintes arquivos:
backslash.png, climb.png, combat_idle.png, emote.png, halfslash.png, hurt.png, idle.png, jump.png, run.png, shoot.png, sit.png, slash.png, spellcast.png, thrust.png e "walk.png".
Por enquanto, o seu foco serĂĄ apenas no arquivo "walk.png".
Arraste esse arquivo para sua Ărea de Trabalho para facilitar o acesso.
[EN] Using WinRAR, extract the folder downloaded via the button âSpritesheet split animation images, credits, JSON (zip)â.
This folder contains the following files:
backslash.png, climb.png, combat_idle.png, emote.png, halfslash.png, hurt.png, idle.png, jump.png, run.png, shoot.png, sit.png, slash.png, spellcast.png, thrust.png, and "walk.png".
For now, focus only on the "walk.png" file.
Drag this file to your Desktop for easier access.
https://ascensiongamedev.com/resources/filehost/b31eeffcd645fa8b5fb0d6dc6821af53.mp4
[PT]đ Instalação â Etapa Final (90% ConcluĂdo!)
Agora estamos na etapa final, que pode parecer um pouco chata, mas fique tranquilo: vocĂȘ sĂł precisarĂĄ fazer isso uma Ășnica vez. Depois de configurado, nunca mais precisarĂĄ repetir o processo.
Para executar meu cĂłdigo, que foi desenvolvido em Python, Ă© necessĂĄrio instalar o Python na sua mĂĄquina. Mas nĂŁo se preocupe â Ă© muito mais simples do que parece!
[EN]đ Installation â Final Step (90% Completed!)
Now we are at the final step, which may seem a bit boring, but donât worry: youâll only need to do this once. After everything is set up, you wonât need to do it again.
To run my code, which was developed in Python, you need to install Python on your computer. But donât worry â itâs much simpler than it sounds!
[PT] Instalar a Biblioteca NecessĂĄria
Abra o Prompt de Comando (CMD) do Windows e digite o seguinte comando oficial do Python:
pip install pillow
đ Caso queira, vocĂȘ pode acessar a documentação oficial do Python aqui.
[EN] Install the Required Library
Open the Windows Command Prompt (CMD) and type the following official Python command:
pip install pillow
đ If you want, you can access the official Pillow documentation here.
[PT]đ€ Perguntas Frequentes
Por que vocĂȘ nĂŁo envia o cĂłdigo jĂĄ em um executĂĄvel (.exe) para Windows, em vez do cĂłdigo fonte em Python?
đč Resposta: Eu atĂ© poderia gerar um arquivo walk.exe, porĂ©m existe um problema comum: quando criamos executĂĄveis de scripts em Python, alguns antivĂrus acusam como vĂrus ou ameaça, mesmo que o cĂłdigo seja totalmente seguro. Isso acontece porque a linguagem Python tambĂ©m Ă© utilizada por hackers para desenvolver scripts maliciosos â e, por precaução, os antivĂrus classificam como de "alto risco" qualquer arquivo compilado desse tipo.
Por esse motivo, prefiro manter o cĂłdigo em formato open source (cĂłdigo aberto). Assim, vocĂȘ pode simplesmente copiar o conteĂșdo, colar no Bloco de Notas, salvar com o nome: walk.py
E executar diretamente na sua mĂĄquina, de forma simples, transparente e segura.
[EN]đ€ Frequently Asked Questions (FAQ)
Why donât you send the code already as an executable (.exe) for Windows instead of the Python source code?
đč Answer: I could generate a walk.exe file, but thereâs a common problem: when we create executable files from Python scripts, some antivirus software will flag it as a virus or a threat â even if the code is completely safe. This happens because Python is also used by hackers to create malicious scripts, so as a precaution, antivirus programs often classify these executables as âhigh risk.â
For this reason, I prefer to keep the code in open-source format. This way, you can simply copy the content, paste it into Notepad, save it with the name: walk.py
And run it directly on your computer â in a simple, transparent, and safe way.
[PT]âïž Executando o Script â Recorte AutomĂĄtico da Imagem
Após concluir a instalação do Python na sua måquina, faça o download do código que realizarå automaticamente o recorte da sua imagem "Walk.png".
đ Link do arquivo: Auto_Walk.py
đĄ Observação: Se vocĂȘ nĂŁo se sentir confortĂĄvel em baixar o arquivo, por questĂŁo de segurança ou confiança, vocĂȘ mesmo pode criar manualmente o arquivo.
âïž Basta abrir o Bloco de Notas, criar um arquivo com o nome: Auto_Walk.py
E colar nele o seguinte cĂłdigo:
đ CĂłdigo:
[EN]âïž Running the Script â Automatic Image Cropping
After completing the Python installation on your computer, download the code that will automatically crop your image "Wal.png".
đ File link: Auto_Walk.py
đĄ Note: If you donât feel comfortable downloading the file â for safety or trust reasons â you can easily create the file yourself manually.
âïž Simply open Notepad, create a file named: Auto_Walk.py
And paste the following code into it:
đ Code:
[PT]đŻ Etapa Final â Executando o Script
Chegamos Ă etapa final! đ
A partir daqui, vocĂȘ nĂŁo precisarĂĄ mais repetir nenhum dos processos deste tutorial.
âïž Agora Ă© simples: pegue sua imagem chamada "Walk.png", coloque ela na mesma pasta onde estĂĄ o arquivo "Auto_Walk.py", e execute o script.
đž O script funcionarĂĄ automaticamente, desde que a imagem "Walk.png" esteja na mesma pasta que o arquivo "Auto_Walk.py".
đïž Exemplo de estrutura da pasta:
NomeDaPasta
âââ Auto_Walk.py
âââ Walk.png
[EN]đŻ Final Step â Running the Script
This is the final step! đ
From here, you wonât need to repeat any of the steps in this tutorial.
âïž Itâs simple: take your image named "Walk.png", place it in the same folder where the file "Auto_Walk.py" is located, and run the script.
đž The script will work automatically as long as "Walk.png" is in the same folder as "Auto_Walk.py".
đïž Example of folder structure:
FolderName
âââ Auto_Walk.py
âââ Walk.png
[PT] VĂdeo mostrando como recortar automaticamente a imagem âwalk.pngâ.
Siga os passos do vĂdeo para que tudo funcione corretamente.
Em caso de dĂșvidas, me chame no Discord.
[EN] Video showing how to automatically crop the âwalk.pngâ image.
Follow the steps in the video to make everything work correctly.
If you have any questions, feel free to contact me on Discord.
https://s3.us-east-2.amazonaws.com/ascensiongamedev/filehost/52eae037e3444928a5cbc5cdc8b3b0b4.mp4