article thumbnail

Godot Tactics RPG – 03. Input & Camera

The Liquid Fire

Setting Up Input Mapping I think the biggest things in Godot that are a bit different with input are that the mouse scroll wheel is considered a button click. One click for each ‘tick’ the wheel scrolls. It will mean that if we decide to update it in the future, we won’t have two places to edit map data.

Tile 59
article thumbnail

Godot Tactics RPG – 01. Intro & Setup

The Liquid Fire

You can download Godot here – [link] Click the link to Download the 4.x Unzip the folder and click on the program.exe(it should be something like “Godot_v4.1.3-stable_mono_win64.exe”) Project Setup Open Godot and click on the New Project button. Downloading & Running I am using Godot 4.x stable_mono_win64.exe”)

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

This is consistent with how most image file formats store pixel data, and with how most graphics APIs work (including DirectX, Vulkan, Metal, WebGPU, but not OpenGL). By default, the 3D Shader of Cocos will multiply the tile Tilling and add the Offset, and it also supports the flip repair for RenderTexture. contentSize; const x = size.x;

Shaders 98
article thumbnail

D20 RPG – Board

The Liquid Fire

In this lesson we will look at making custom boards for our encounters that are data-driven and skinned in a Tilemap. A lot of people asked about making 2D maps and how to use different types of tiles like water vs dirt. For this lesson I created a couple of simple images to use for tile maps.

Tile 52
article thumbnail

Godot Tactics RPG – 02. Board Generator

The Liquid Fire

We’ll create everything we need to build our tiles and generate a board or two. If you want to copy code, click the button in the corner of any snippet Toggle RAW Code. Probably the best option for multi-line comments is to write all the lines, then select all of them and right-click on the text and choose toggle comments.

Tile 52
article thumbnail

Godot Tactics RPG – 05. Pathfinding

The Liquid Fire

As we need to find all possible tiles a unit can move to, A* quickly bogs down because it is designed to find a single path from point A to B as quickly as it can, but finding a path from A to B-Z is a lot of individual paths. static func GetDirection(t1: Tile, t2: Tile): var dir:Directions.Dirs var toTile:Vector2i = t1.pos

Tile 59
article thumbnail

Godot Tactics RPG – 06. Anchored UI

The Liquid Fire

This time we’ll be working on some scripts to make working with anchor points in code a bit simpler, and allow us to animate some things in our UI. This time for Anchor Points set Left to.4, Click on the ParentPanel and create 3 child nodes of the type ReferenceRect and name them VRect, HRect and FullRect respectively.