x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Change one color on a 2d pawn

Hello i need your help, how can i change the color on a specific part of the pawn? The pawn is a 2d sprite.

Product Version: UE 4.20
Tags:
more ▼

asked Apr 13 '19 at 10:41 AM in Blueprint Scripting

avatar image

RDAavata97
3 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You will need to do this in the material editor with a lerp node.
Create a black and white mask. White where the color will change and black where it should remain the untouched.

alt text

final.png (564.8 kB)
more ▼

answered Apr 14 '19 at 07:06 AM

avatar image

Sam Carey
49 2 2 6

avatar image RDAavata97 Apr 14 '19 at 11:31 AM

I try but this is the result I don't know why do that black background

alt text

what kind of image format and program do you use to create the texture?

send.png (486.1 kB)
avatar image Sam Carey Apr 15 '19 at 10:09 PM

I use a PNG with a transparent background. The bottom pin can then be used to remove the background. You also need to change the blend to either transparent or masked. My images can be found below.

mask.png (9.2 kB)
man.png (33.5 kB)
maskmat.png (607.6 kB)
avatar image RDAavata97 Apr 15 '19 at 10:52 PM

It work!!!!!!!!!!!!!!!!!!!!!

thank you so much

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question