Saturday, February 6, 2016

The Pulse

Question: how do you let the player know if they can select an object? Also, how do you make them select an object?

Lots of good solutions. Some of them use a cursor, some of them use the player's position and orientation, some of them use other methods. I choose the second, and I made a mental note to NOT put my selectable objects too close to each other.

So, how do you make these objects stand out? my solution: make their color pulse! Like in Gorky 17.

First, I have created a standard material and set the emission to a dark grey. So the glowing objects will in fact "emit" light. (Only in rendering, as far as I know, they won't actually illuminate other objects.)

Then, I attach a Selectable component to them (code), and voilá! If a gameobject named "Player" faces them from close, the'll glow.

(Gif in full post)


GIF. (The quality sucks because I restricted the number of colors, so the GIF would take up less space. It looks nicer in reality.)


No comments:

Post a Comment