I have it working... dont know for witch reason it started to work now ? i though it was a problem with godot v4.2.1
extends Sprite2D
var absRect = Rect2(0, 0, 32*3, 32*3 );
var absRect2 = Rect2(32*5, 32*5, 32*3, 32*3 );
var texture1;
func _ready() -> void:
var img1 = ImageTexture.create_from_image(texture.get_image().get_region( absRect ) );
var img2 = ImageTexture.create_from_image(texture.get_image().get_region( absRect2 ) );
var format = img1.get_image().get_format()
var image1 = Image.create(500, 500, false, format)
image1.blend_rect(img1.get_image(), Rect2(Vector2(0, 0), Vector2(32*4, 32*4) ), Vector2(0, 0) );
image1.blend_rect(img2.get_image(), Rect2(Vector2(0, 0), Vector2(32*4, 32*4) ), Vector2(100, 0) );
texture1 = ImageTexture.create_from_image(image1);
func _process(_delta: float) -> void:
queue_redraw();
func _draw() -> void:
draw_texture(texture1, get_global_mouse_position() );
xyz they're approaching the whole thing in a bit of a misguided way
xyz I dont identify myself has "they", she's, or it. Iam just one guy making a tilemap, i dont have a team on my back