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...

Saturday, July 22, 2017

Successful Unity C# Bubblesort

Here it is: https://pastebin.com/zAbNJnQW

Unity: How I've made a moving cursor on a bar

Here's how I've made the basic cursor moving on bar, here's the code:

https://pastebin.com/7x4seP3R

First it was moving outside the bounds of the bar so what I've tweaked is the WaitForSeconds timing by making it much smaller. By doing that, the system checks where the cursor is at much more often. With that, I have made the Vector3 y-coordinate speed much smaller since the delay happens much less. When it was time to change the direction of my bar (from going up to going down and vice versa), I just added a - (negative sign) to moveWhere so that it goes opposite. The code works like perfectly well!

Tuesday, June 6, 2017

What makes something into a game

Here is what makes a game, a game:

1) The ability to make choices. If you can't do anything, then you're watching a video or reading text, it's not a game. In a game you do something.

2) You can win. It's not a game without the ability to win.

3) You can lose. It's not a game if you can't lose either.

This post may be updated further on.

Unity: Why you can't change your public variables through script

You may have created a public variable through script, but then you can't change it. Why is that? It's because you can only change it through the interface, in Unity. Otherwise make the variable public. That's just how it works.

The Art of Game Development

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