Helpful tips in creating functunalities

Here are some tips in how to create a new functionality, according to me: If you have something that is not so simple, write pseudocode...

Tuesday, June 4, 2019

Extra Credits: How to market your game

I have found this video about marketing/launching your game quite helpful. Therefore I suggest that you watch it:


Monday, February 18, 2019

Helpful tips in creating functunalities

Here are some tips in how to create a new functionality, according to me:
  • If you have something that is not so simple, write pseudocode and test it out in your mind. Make sure it works perfectly like this. I do lots of trial and error, but when I write pseudocode, I decrease the number of frustrations and time because I succeed in this.
  • When there is more than just a single simple function, do each functionality one step at-a-time. Then, when you succeed, take a break.
  • If you are like me, with a tendency to get obsessed with your problem until you can solve it, take a break after you have succeeded in making one functionality. I need these breaks because I my obsessions can lead me to programming over 4 hours non-stop, and it harms my health. Another thing to do with those "obsessions" is to put a serious limit in how long you will solve a problem. Set like 1 hour to solve a problem as a limit, and then take a break. Maybe, if you have worked on this for many hours, ask for help too.
  • If you have a complex (or just not-so-simple) functionality (or maybe more than just a few), make them the simplest possible. I mean make the essential function, then worry about making it the way you want it when it is complete. So, for example, when I have to manipulate an important or essential variable in another script, I make it static (in my OOP) and just access it with the call of [ClassName.variableName]. This is instead of making the other classes variable private, then making extra functions/methods of calling this. It is just too complicated! This way, I don't have go through extra trouble, and the trouble of also debugging, additional problems. Doing this mistake can also make it too difficult to differentiate between whether your main functionality is problematic or that you have made this mistake.
    Another example is that, if you have something that requires a lot of math to do, then based on the correct numbers you need the feature to behave a certain way. What you do is that you create and test, the math part of your problem (which is the essential part of your problem) in simplest terms, and if you succeed in making it the way you want it, you move on on making it further.

Wednesday, February 13, 2019

Comparing and contrasting RPG Maker MV vs SRPG Studio


RPG Maker MV vs SRPG Studio:
  • Both have:
    • Similar interfaces
    • A few similar resources
    • Javascript script support
  • RPG Maker MV Pros:
    • Has character generator
    • Can create JRPGs (like Chrono Trigger, Final Fantasy and Dragon Quest)
    • Has plugin support (not sure if SRPG Studio doesn't have it)
    • Has more resources it comes with
    • You can customize the damage/healing/etc. Formulas
    • Can export to many more builts than just Windows (they include Mac, iOS, Android and HTML5), SRPG Studio can only build to Windows currently
  • SRPG Studio Pros:
    • Can create Tactical/SRPG games (like Final Fantasy Tactics) but the games made are mostly Fire Emblem for the GBA clones (FE 4/5 games?)
    • Has many more settings/variables to program (I think it's because of the kind of a game [tactical] it is)

Monday, January 28, 2019

How I've fixed the "Jiggly" effect of my Unity 2D game

So, first of all, I had a real tile problem. See the "gaps" of the tiles kept on changing size (decreasing and increasing) as my camera moved. You can see it in this video here: https://www.youtube.com/watch?v=BtkgLe50iY0 (see the gaps of my tiles while my character moves). I have fixed it from using the code from here: https://forum.unity.com/threads/setting-up-unity-for-pixel-perfect-2d-project.268807/ . You can also see/read this article about the same thing here: https://hackernoon.com/making-your-pixel-art-game-look-pixel-perfect-in-unity3d-3534963cad1d
Now this has caused my character to have the Jiggly effect described here: https://stackoverflow.com/questions/35785291/getting-giggly-effect-when-slowly-moving-a-sprite . I still couldn't figure out how to fix it until someone has given me an idea. I have used a Tilemap feature to place the tiles. The tiles have a 32 PPU (Pixels Per Unit). I have set my character from 100 PPU to 32 PPU (just like the tile PPU) and it seems it has worked. My character no longer looks weird when walking. I can just resize the tiles and my character using the regular Transform Scale.
I hope this helped anyone in need of help here.

Edit: I have so far had a problem with my character having the Giggly effect again. What I've changed is add my Pixel Perfect Camera code to my character instead of my Camera (because the camera is my child object of the character and you can't use the local position like this) and I have made my camera's local positions 0.1, 0.1, 0 instead of 0, 0, 0.

Saturday, January 26, 2019

Pixel Perfect Movement for your 2D game's tile problem

I have had a problem where my 2D game's tile "gaps" kept on increasing and decreasing in size. Here it is in the video:

Here is the article that has solved the problem: Setting up Unity for pixel-perfect 2d project .

Here is the code that I've attached to my character (the camera is a child GO of it):

void Update()
    {
        Vector3 roundPos = new Vector3(RoundToNearestPixel(transform.position.x, Camera.main), RoundToNearestPixel(transform.position.y, Camera.main), transform.position.z);
        transform.position = roundPos;
    }
    public static float RoundToNearestPixel(float unityUnits, Camera viewingCamera)
    {
        float valueInPixels = (Screen.height / (viewingCamera.orthographicSize * 2)) * unityUnits;
        valueInPixels = Mathf.Round(valueInPixels);
        float adjustedUnityUnits = valueInPixels / (Screen.height / (viewingCamera.orthographicSize * 2));
        return adjustedUnityUnits;
    }

Tuesday, January 22, 2019

Entertainment Software Rating Board (ESRB) Video Game Age Requirement Guide

Here it is: https://www.esrb.org/ratings/ratings_guide.aspx

Unity: Why you have serious problems with your connected controller

So I had a serious problem with using my connected-to-computer joystick to use in my Unity game. What happened was that when I have added movement to my in-game character, he would constantly move somewhere, as if a pad/stick was being moved. I couldn't solved it for a while until I have changed the "Axis". I have changed from X-Axis and Y-Axis to 5th Axis and 6th Axis. Now the problem is solved.

The Art of Game Development

The Art of Game Development
A Guide for Beginners (eBook)