• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jun 03, 2014 at 01:39 AM by meat5000 for the following reason:

Too subjective and argumentative

avatar image
0
Question by sneenlantern · Apr 16, 2012 at 06:24 PM · textureshadersmaterialshighlighttargets

The Best Way to Highlight An Enemy

Hi,

I'm working my way through Burgzergarcade's most excellent "Hack N Slash" tutorials. His game is a 3D game but mine is 2D, but I have been adapting a lot of the scripts and it's working out pretty good. Right now I'm working on targeting. You might say "Why would you need targeting in a 2D BeatEmUp?" Well, it's hard to explain. Anyway -- he changes the material color on his targets which seems to work, but I'm using sprites and looking for something a little different. I've been doing research and there seems to be multiple ways to do this: changing the shader, using a projector, changing the texture, etc.... But I'm not sure how to proceed. It seems as though projectors are more for 3D games and plus I don't really want fancy effects as it's a hand-drawn game. I'm a little unclear about shaders and how they work, though I have been reading -- but I don't know if one will work with the look of my game. I've also considered changing the texture, maybe to a different version of the sprite, or a bigger version, or maybe making it pulse.... I don't know. If you were making a hand-drawn game, which would be a simple but elegant solution I can research that's effective but not loud? With Unity it's like the possibilities are endless, and that's kind of the problem here.

Does anyone have any advice on how I might proceed? My brain can't seem to wrap around the obvious on this one.

Thanks for reading. This is a pretty integral feature of my game.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Jun 03, 2014 at 01:32 AM 0
Share

-1 Answers Bug

1 Reply

  • Sort: 
avatar image
0

Answer by Matt-Downey · Apr 16, 2012 at 08:01 PM

I think the best thing for a 2D game would be to add a particle effect to simulate a glowing aura. http://unity3d.com/support/documentation/Manual/Particle%20Systems.html

If you were to use 3D (doesn't seem like it) you could outline your targeted model with this shader: http://www.unifycommunity.com/wiki/index.php?title=Outlined_Diffuse_3 (thanks to AnomylousUnderdog).

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sneenlantern · Apr 16, 2012 at 08:11 PM 0
Share

hey thanks for replying. Yeah, I was considering a particle effect. Does that really increase the CPU usage, etc.? I wouldn't want to tax the system too much just for this.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A Shader to Duplicate and Flip a texture 0 Answers

is it possible adding text in realtime using shadergraph? 0 Answers

How do I properly apply a transparent texture to a mesh? 2 Answers

Is it possible to make an image sequence into an animated normal map? 0 Answers

Best Practice to Combine many textures 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges