Same colored spawn objects between blueprints
Hi. I have 3 blueprints.One them is for Spawning. The other 2 are for generating colored geometrical shapes and letters. First I create random geometrical shape from a shapes list with a random color then I create a letter with a random color. I want geometrical shape and letter have not same color because I can not see letter above geometrical shape. Im attaching my blueprints how can I solve this issue.
Here is my work http://www.dosya.tc/server13/fr7lmf/MusdyDeneme.rar.html
Some Photos My Letter and Geometrical Shapes Blueprints is same.
My Spawn Object blueprint
asked Jun 07 '18 at 09:27 PM in Blueprint Scripting
If the color indices are the same for both the letters and shapes (i.e. Color option 1 on shapes is red, color option 1 on letters is also red) you could use a variable to store the color choice of the shape on each instance of the shape BP and when spawning the letter (or vice versa, can't really understand your code language as to which spawns first and what not) have a check between the variables to make sure they aren't the same, if they are have a custom event fire to repeat your "randomization" of the color until an appropriate color is chosen. Basically the logic is as follows:
answered Jun 07 '18 at 10:27 PM
Nebula Games Inc
My lazy way is to take the color of the shape and then assign the letter color as R: 1 - shape color's R, G: 1 - shape color's G, B: 1 - shape color's B, A: 1.
This should work as long as nothing has R: 0.5, G: 0.5, B: 0.5 (gray) or close to it. It just makes the letter have the exact opposite color.
answered Jun 08 '18 at 07:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here