Friday, December 28, 2012

Why am I lazy

Please have a full read on below article, it is really cool now I finally understand more about my brain

http://serendip.brynmawr.edu/bb/neuro/neuro05/web1/isiddiqui.html



my thought on dopamine

When you experience something good or awesome, your brain will release dopamine, and you will feel happy and you will want to repeat the same experience again and again

So what kind of activity will release dopamine?

1. food
2. sex
3. risk and reward

thats why gambling is such a big addiction

and why do human need to release dopamine when there is "risk and reward" this is due to human need to take risk to achieve something bigger

such as me wasting all my time and money to build stupid game and hoping can earn me some buck

so back to the question, why am I lazy

this is because the process of building the game take too long and the brain did not release enough dopamine to keep me motivated

so what should I do , go and buy some dopamine pill to swallow?

nah, I wont do that, maybe just ease up a bit until the dopamine juice is a bit more to get me going, thats the only strategy i can think of

totally no idea how to fix this

maybe there really are no way to fix this, just keep forcing yourself to finish the thing







Tuesday, December 25, 2012

GIMP how to increase the size of the image without scaling it

Let say you have a GIMP image of size 100,100

you want it to be 200,200 but you dont want to scale the original pic, you just want extra space for your image, here is how you should do it

1. ON TOP, under IMAGE->CANVAS SIZE
- set your size to 200,200

2. Right click on your image, LAYER TO IMAGE SIZE

Hope it help, it is very difficult for me, I am noob

Monday, December 17, 2012

Building my first car in blender

So today I try to build a car using blender


add some wheel and colour




Saturday, December 15, 2012

Unity OnGUI how to change color, transparency and font

Here is what I found after googling for a while

1. On your unity, ASSETS -> CREATE -> GUISKIN, name it "myGUISKIN"
2. On your script, create a new variable

var myskin : GUISkin ;


function OnGUI () 
{

    GUI.skin = myGUISkin;
}


3. Drag your script to one of the object, then drag your myGUISKIN into your script variable "myskin"
4. Now you can configure everything on your myGUISKIN, you can change the background color, you can change the font size and everything you can think of


Wednesday, December 12, 2012

Unity Function that return value

Here is how to return value for function in unity


function myFunction() : outputType {
    return variable;
}

Unity two dimension array


private var mystuff : int[,]=new int[52,3];


mystuff[12,12]=5;



Tuesday, December 11, 2012

Unity how to hide a single object

Here is what should do,

1. Open unity, create one object cube
2. Create new javascript then put


var mycube: Transform;

function update()
{

     mycube.transform.renderer.enabled=false;
}




3. drag this script into your cube object, 
4. drag the cube into your script variable "mycube"
5. if you run your app, the cube will be dissapear