Skip to main content

Posts

Good week so far: 2 probs solved! and more

My books were mentioned in a conference about cuban fantasy writers last saturday. I knew about it because the author, Yoss, asked me the book covers, but yesterday an assistant confirmed me that Yoss referred to my novels in very good terms. Of course, that makes me very happy.

But let's go to the important stuff. This week I solved a couple of little problems I had. One was dating back to my beginnings with unity and it was related to scroll areas. I need to implement a message area where usual game messages are displayed, and the capacity of scrolling the content was desirable. Well, at last I found a short explanation that helped me to solve this. Content Size Fitter was the answer.

And yesterday I managed to implement a basic system to make transparent the objects between the player and the camera. Not too complex, it just requires a line cast from the camera to some point in the player (I recommend something near the head or so) and check what's hit. The you only need t…
Recent posts

Need particles?

If you need a particle system to test something, but your artistic side is  abit deficient (like mine), these videotutorials by Duc Vu are the solution. On his Youtube channel you will find the best particle tutorials I have seen, they are short, they go right to the point and best of all, he doesn't needs to talk to explain anything. Most of the time, the narrator annoys you with useless details and wastes your time. Enjoy!

Some ramblings about ScriptableObjects

First, I have finished the beta for my2D project. I'm now looking for serious beta testers, and hope I can have a more complete demo soon.

Now, lets get into matter. Lately, I have found a couple of interesting materials about ScriptableObjects. I used one to implement the AI system, but then found this second:


This guy uses ScriptableObjects like a swiss knife, for an amazing variety of tasks, some of them you wouldn't believe. I recommend you to watch the video. I was really interested in seeing how can they be used to replace Singleton based game manager class, but he didn't covered that topic (or I did not understood when he did).

In my case, I plan to explore ScriptableObjects in the new iteration of my RPG project for AI (already have a working proof of concept) and for items/inventory system. Then I will see if there is some way I can used them to improve the dialog system.

Seems that Unity is trying to address the lack of information about ScriptableObjects, this…

Polishing the AI system

Well, the AI system is done. I figured out the way it works enough to be able to extend it a bit and implement a couple of different behaviors and situations. I'm working to polish the demo and then I will probably release the code on Github. It is very basic, and will include player vs 1, player vs group, player group vs group, and some other stuff like reaction to player, warnings, attack after warning and follow the player.
Also, I will include some needed subsystem, like items and abilities. This is not in any way a 100% reliable tutorial, it is just me throwing code to see if it works. Expect more news on this later this week or next.

Pluggable AI via ScriptableObjects in Unity3d

I mentioned before that I was studying the pluggable AI tutorials, and still am. Can't say I fully get the idea, but yesterday I managed to assemble a little test, modify the original code, and improve it. I strongly recommend that you watch this conference (and the tutorials):



The tutorial uses an StateManager class which deals with updating the states (states are ScriptableObjects, which lacks the Update() method) and also serves as a repository to keep information. ScriptableObjects should not keep entity related info, as all the entities would be sharing the same object and thus, that would be a problem. Any data needed in states, decisions or actions should be provided by the state manager, so, each entity has one. An state has an action and a decision. Depending of the decision being true or false, it can transition to other two states. That's all... mostly.

The main advantage is modularity. I can write specific states and actions for each NPC, but of course, the ideal i…

Divinity: Original Sin 2

Got this game a couple of days ago and have been playing like 10-11 hours. Not gonna make a full review here, because there are people who does much better and earlier than me, these are some ramblings about disperse topics.

I don't have complains so far about the game. It is a really good RPG, and I would have done some things different, but thats all. As a writer, I tend to think the same about some books. For example, the first stage seems a bit long to me. I started in Classic mode, which is the second difficult level, and most fights are hard to win. As the game progresses, the only way I found to win was to outnumber the enemy. Then, I had to switch to Explorer mode, which is the easier level. Read here my opinions about how the first quests of an RPG should be designed.

In some cases, the information about the quests is not clear enough: I had to risk crossing a fortress in stealth mode because I had no idea about what other path there were. Not a big problem, this game is…