Sunday, December 13, 2015

Good evening,


this week Luna worked on testing new forms of colliders. Meaning she worked on the player not stopping too far from trees and other objects. Due to the fact that she is still in the middle of improving our maps there is no update for that this week.

I wanted to finish the interaction system this week. After i succesfully figured out the location of the object in front of the player, by taking the players position and direction into account i started looking for a way to figure out which object is at a given location in unity.
The result is that there is none.


There are two ways to create an interaction system in unity. The first would be to search in a list of all objects for the object you want. This is however not a good idea due to the performance suffering from it. The other method is to use colliders and once the player collides with an object a certain code is started and a program runs.

Since i want the player to be able to interact with every tile those solutions arent really suitable for this project.

I got some advice from a friend and decided to create my own system for this.
It will probably take several weeks, but the game will be faster and i can form the system to match my needs 100%.

The idea is to use a 2 dimensional array(imagine it like a table or grid) and store information about each location in my 2d world there. Once i finish planning the system i will tell you a bit more about it.

I have something else that i want to tell you today. In the week from the 21. december to the 27. december there will be no game or blog update due to the many christmas related events in this time.

Thanks for your continuous support.

Best wishes

Feliza

No comments:

Post a Comment