Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Select and outline the object

In our game, the core gameplay is that the player needs to select the corresponding object according to the sound. Therefore, how to make the player complete the action of selecting an object is an important part of the game’s logic.

 

We adopted the basic structure of the script selection introduced in this video by asking tutors, discussing, searching, and learning.

https://www.youtube.com/watch?v=A0Kd6lnBNRE

 

It can distinguish different objects by the tag selectable. When the player clicks on a selectable object, the color of that object changes according to the set material.  (the original cube is white)

 

 

However, in actual running, we found some problems with this script. For example, it gets laggier as the game runs; the color change is not obvious in dim light, which is easy to confuse the player; when the player is too close to the object or the collider of the object is too big, the object will become difficult to select. We’ve tried a lot of solutions to this problem and finally used the script outline selection introduced in this video to complement and improve it.

https://www.youtube.com/watch?v=qYnAkMGbgwo

This script helps the player highlight its edges to act as a hint when selecting an object, and the final run is ideal.

Select and outline the object / dmsp-play24 by is licensed under a

Leave a Reply

Select and outline the object / dmsp-play24 by is licensed under a
css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel