Like our game on Facebook!

5/28/2014

From GameSalad to Unity: what i found for now.


Hello guys! How are you? It's Dario and today i want to talk with you about the scariest step you could ever take: Programming from "no code" to "real code".

If you are used to gamesalad,in which everything is so easy to set (you just import your image, you just drop it as an actor, you just make it DO actual things) , to make the big jump to something "better" looks really scary (and believe me, it is!).

BUT. There is a hope if you have never programmed anything. It will be a long road, but if you take it patiently, you probably will go actually SOMEWHERE.

If you don't know anything about javascript, your first step is: codeacademy.com

Then, after two or three months you will come back here, and you will say:
"Alright, now javascript has no secrets, but still i can't do anything with Unity".

And that's okay if you started with GameSalad. How do you move objects? How do you use timers? How do you make "rules" as they are called on GS?

Let's see a LITTLE comparison list:

On GS you can have only ACTORS, IMAGES, SOUNDS, SCENES, and TABLES.
 >On UNITY you have Prefabs(ACTORS), SCENES, IMAGES, MATERIALS(textures), SCRIPTS(The CODE PART of the ACTOR), Physics elements (PHYSICS part of the actor).. aaaand a lot of other things. 


On GS every actor has everything attached to it, all the above: physics, codes, etc. 
>On Unity you can dismiss the useless parts: not everything needs physics!

On GS you have "change attribute" without a rule?
>On Unity you have "function OnStart(){.........}";

On GS You have Timer: Every 0 seconds.
>On Unity you have "function OnUpdate(){...}"

On GS you have "random(10,20)?
>On Unity you have "Random.Range(10,20)";

On GS You have Timer: after 1 seconds.
>On Unity you have "yield WaitForSeconds(1);"

On GS you have "game.points = game.points +1?
>On Unity you have "var points += 1;";

On GS you have "Spawn Actor"?
>On Unity you have "Instantiate(objectName , position, rotation)"; <-- this is a bit  more complex when used.

On GS you have "Destroy"?
>On Unity you have "Destroy(gameObject, secondsToDestroyIt); <-- you can destroy all the object, or whatever part it has attached.

On GS you have "self.position.x"?
>On Unity you have transform.position.x; <--- transform is just like "self". It IS the object.

-and more- (Updating as i find them...)

Do you know something else? Just pop a comment and we will be all happy!


No comments:

Post a Comment