Godot Engine

Godot Engine

newold Jun 13, 2019 @ 12:16pm
Hey! I need help with a function to cut images / textures
I have an image (texture) with some images in (pattern), i want get for example image (texture) in rect(0,0,100,100) and return this new texture:

func get_texture_crop(main_texture, rect):
var new_texture = ?????????
# make stuff to crop main_texture with rect and make this my new_texture
return new_texture
< >
Showing 1-1 of 1 comments
Wow its deep
:p
I know that hp bar is like to cut image inside them
May you use it to contain your texture?
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Jun 13, 2019 @ 12:16pm
Posts: 1