Sunday, 27 January 2013

Levels And Clean-up

These past couple of days I've been working On a few test levels, clean-up and a few bug tweaks so I can release my test to the waterfront games website (and elsewhere if need-be) for testing.

The first glitch I had was unusual - I couldn't joint a yellow plug to a yellow socket; which really threw me because there shouldn't have been any reason for it. After a LOT of printing values into the console I found that unity defines all of it's main pre-set colours using ones and zeros APART from yellow, which is defined as (1,0.922,0.016) instead of (1,1,0). Typical.

The second problem I found was that despite what I thought, the plugs and inputs and outputs were being instantiated straight onto the main scene, rather than inside of their respective hubs - causing messiness and possible problems in later developments. after a reasonable amount of research I found that making something a child of another is as simple as the following;

Newobject.transform.parent = gameObject.transform;

before parents/child's



After parenting (function inputs/outputs INSIDE functionhubs

No comments:

Post a Comment