This is super fantastic and informative tutorial. I was expecting that you will also upload tutorial for the more complex game, you mentioned at the end of the tutorial. I am still anxiously waiting for this tutorial. MANY thanks in advance.
@Chevifier4 ай бұрын
I did Grid based Inventory tutorial. Thank you🙂
@samuraikina590810 ай бұрын
Great video 🔝
@ShiloBuff10 ай бұрын
Subscribed for the great feedback from you. Looking forward to more content.
@Chevifier10 ай бұрын
Thank you😅
@snaker906 ай бұрын
Helpful, Thank you!
@thesomeone2nd10 ай бұрын
Can you explain how do you remove the old texture when you place the circle in the circle slot? How does the circle back gets deleted? Because I wanted to try and recreate this system myself and it works but the texture remains back.
@Chevifier10 ай бұрын
The way im doing it in my project is to just have a blank texture rect as a child of the background texture then give it the item texture when I drag on it. Set it to null otherwise
@thesomeone2nd10 ай бұрын
@@Chevifier in which function should do you add this though? And it's the same one you set the null let's say?
@hannahrogers19464 ай бұрын
This is a great tutorial, but I'm really sturggling with fixing the offset, do you have any advice? I've read through the comments and I'm having no luck applying it!
@Chevifier4 ай бұрын
Put it on a control node the offset the sprite then add the control node as the preview. so: var prev = Control.new() prev.add_child(tex_rect) #if you know the half size just type it in tex_rect.position = Vector2(-tex_rect.size.x/2,-tex_rect.size.y/2) set_drag_preview(prev))
@malxd84049 ай бұрын
Onde a variavel texture de get_drag foi declarada???
@Chevifier9 ай бұрын
es la textura del nodo TextureRect que el script está extendiendo
@malxd84049 ай бұрын
tks man!!! @@Chevifier
@muhammadumair37196 ай бұрын
will this work for mobile touch?
@jasonwilliams873010 ай бұрын
👍
@yusarimahubara9 ай бұрын
You can tell the truth if you want, that you have no idea how to solve the offset when using drag instead of "for this tutorial I'm just gonna skip it'
@Chevifier9 ай бұрын
Thanks for the feedback. You can just use another control node as the parent then offset the child's position by half its size. But it felt very hacky so I didnt want to include it in the tutorial.
@yusarimahubara9 ай бұрын
@@Chevifier The control node in the drag was always (0, 0) and any position or rect size give me zero. I solved it because I know the size of my texture divided by 2 and applying it as a negative vector like Vector2(-16. -16) but yes, it feels a bit tricky.
@Chevifier9 ай бұрын
@@yusarimahubaraWe could request that they update the set drag previous to include an optional offset Vector. But its not really a need imo i.e set_preview(control:Conrol, offset=Vector2(0,0))
@VIBrunazo5 ай бұрын
I solved it with just 3 lines of code more than the video. Just set global_position of a child TexRect to the globla_position of the original TexRect: var preview: Control = Control.new() var tex: TextureRect = TextureRect.new() tex.texture = texture preview.add_child(tex) tex.set_deferred("global_position", global_position)