Hey there!
I’m working on a little minigame for my project, where I use a texture_block that I want to move to the right and left consistently. (No other axis needed)
But now I’ve got to the problem, that I have absolutely no idea on how to change the anchor of the texture_block over time & the only idea I have in mind is to like add/remove the texture_block over time to simulate like a moving texture.
Currently I have just added a canvas to the player that shows the “cursor” (stroke in the middle). Anyone has an idea on how I could do something like that for example using a stackbox or something like that?
FishingCursor_Pos := anchors{Minimum := vector2{X := CursorPos, Y := 0.7}, Maximum := vector2{X := CursorPos, Y := 0.7}}
Fishing_Cursor : texture_block = texture_block{DefaultImage := FishingCursor, DefaultDesiredSize := vector2{X := 1024.0, Y := 1024.0}}
CursorCanvas : canvas = canvas:
Slots := array:
canvas_slot:
Widget := Fishing_Cursor
Anchors := FishingCursor_Pos
Alignment := vector2{X := 0.5, Y := 0.5}
I’ve tried things like making a loop & adding/removing it all the time, but it didn’t really worked out & wasn’t nearly as smooth as I wished.