article thumbnail

How to change the offset of a Tiled Sprite

Cocos

Hi, i want to apply a sprite as a tiled background and apply to it an animation like a movement. I don’t want to make a script that calculate position and if at certain value must to set the start position. This Node has a sprite set as Tiled I want to give this effect changing the “offset” of the texture/sprite of it.

Tile 40
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. We’ll add this to the same script as the Dirs enum. The breadcrumbs mentioned earlier.

Tile 59
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

D20 RPG – Board

The Liquid Fire

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. This asset will be sort of abstract data, and can be “skinned” with specific tiles at a later point. They are available in this package here.

Tile 52
article thumbnail

Tileset With Single Spritesheet file

Cocos

I have a tiledmap made in Tiled which uses a png spritesheet, without using.plist or any kind data file for the spritesheet. CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/3d/manager/asset/asset-watcher.ccc:1:1215) at AssetDump.decode (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/export/dump/types/asset-dump.ccc:1:989)

Tile 40
article thumbnail

D20 RPG – Size, Space and Reach

The Liquid Fire

Different creatures can be different sizes, and accordingly may occupy different numbers of tiles, or be able to reach different tiles (such as for attacking). Size System Create a new folder at Scripts -> Component named Size. Size System Create a new folder at Scripts -> Component named Size.

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. “”” this is a comment “”” Although it looks like this can only be used in certain parts of your scripts. x scripting course, or it may be easier for the time being to find a beginner Python course.

Tile 52
article thumbnail

2D gaming performance

Cocos

As soon as the script detects that a black screen will appear soon, the script generates ground. Then I generate nodes from this array, but use the TILED type for the sprite and generate one sprite in one ground line and stretch the sprite in width. I encountered a performance problem. I started with ground generation.

Sprite 52