0 votes

I have 2 images (named backimage.png and frontimage.png) both are in "res://Sprites". I then have a 3rd image which is created dynamically and named: middle_image.png. The code for this 3rd image works perfectly. What I am wanting to do is combind all three images into 1 texture.

Finished Image (Texture) Structure. (frontimage is on top)
-front
image
-middleimage
-back
image

The code I use to create middle_image is as follows:

for i in CardLibrary._cards:
      var image_file = "res://Sprites/middle_images/"+CardLibrary._cards[i].image+".png"
      var img = Image.new()
      var itex = ImageTexture.new()
      img.load(image_file)
      var middle_image =  itex.create_from_image(img)

Now I need code top combind all 3 images into 1 image texture ...

Please help?

asked Aug 12 in Engine by BigDC (22 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.