Oct. 12th, 2020

Work Post

Oct. 12th, 2020 08:05 pm
relee: Picture of Relee Starbreeze, Wizard (Default)
8:09pm - So I've got a menu that pops up when I right click, but it doesn't do anything. I also want to highlight a tile when it's selected. I've made a sprite to do that, but I have to position it above the tile that's highlighted when the mouse is clicked.

8:51pm - Alright I've got my highlight working. Now to make it change the tile that is selected to match the result of the menu pick.

9:41pm - I'm working on the code to change the tiles on the map and tilemap and I keep thinking there has to be a better way.

For one thing, it's silly to hand set the tiles at every change, and go through a match or if tree that could each be a point of failure with a single character mistype.

Also, a change on the Map should be automatically reflected in a change on the TileMap.

10:09pm - I've got it working, and more efficiently now, but a bug has cropped up. When I move the camera and try to select a tile, it selects the wrong tile.

I'll start bug hunting to see if I can figure out why.

11:11 pm - I tried putting the interface on a Node2D and moving it around but it hasn't helped. I'm not sure what I'm doing wrong, but I think I'm done for now. I'll have to figure it out another time.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 30th, 2025 11:52 pm
Powered by Dreamwidth Studios