wallacepolsom
hello vonnie

izzy's playlists!

Origami Around
Show & Tell
PUT YOUR BEARD IN MY MOUTH
d e v o n

Andulka

titsay
đŞź
h
Claire Keane
I'd rather be in outer space đ¸

PR's Tumblrdome
Misplaced Lens Cap

â

#extradirty

romaâ
Keni
KIROKAZE

seen from Albania
seen from Syria

seen from Norway
seen from Nigeria

seen from TĂźrkiye
seen from Chile
seen from Japan
seen from Russia
seen from United States

seen from Singapore

seen from United States
seen from United States

seen from Germany

seen from Germany

seen from Saudi Arabia
seen from Portugal
seen from France
seen from Brazil
seen from TĂźrkiye

seen from TĂźrkiye
@oz-studios
One small Though in morning can change your whole day. (at Software Alliance)
Oz Studio turned 1 today!
How to Add DropDown Menu Items to organize your Unity C# Script (Tutorial)
How to Add DropDown Menu Items to organize your Unity C# Script (Tutorial)
I ran into something that I thought to myself, oh boy, this is a Unity trick that most people might not know. The problem is that you might, in code, have to add the Drop Down Menu to your Script.
Here is a look that what I want to show you:
DropDown to Unity Script
Create an Empty GameObject and ad this script to it:
using UnityEngine; using System.Collections; public class Inspecter_elementsâŚ
View On WordPress
A Very Simple Swipe Controls for Iphone/Android in Unity3d
A Very Simple Swipe Controls for Iphone/Android in Unity3d
Iâve been doing a bit of work on a game project in Unity3d. I wanted to use swipe controls to move the my Player but I canât find a good solution on forums. By âGoodâ I mean more Responsive & Powerful, that didnât drop my Frames or put Lag in my GamePlay.
Idea ???
We want to make a simple, single threat and more powerful script. whose response input didnât affect the game performance i.e FrameâŚ
View On WordPress
Took a buttload of cute screen shots
Cutness overloaded
Parallax scrolling:
An effect that you find in every single 2D game for 15 years is âparallax scrollingâ.
To make it short, the idea is to move the background layers at different speeds (i.e., the farther the layer is, the slower it moves). If done correctly, this gives an illusion of depth. Itâs a cool, nice and easy-to-do effect.
Idea ???
Adding a scrolling axis need a bit of thinking on how we will make the game with this new aspect.
What do we want to move?
Parallax Scrolling
We have a decision to take here :
First choice: The player and the camera move. The rest is fixed.
Second choice: The player and the camera are static. The level is a treadmill.
The first choice is a no-brainier if you have a Perspective camera. The parallax is obvious: background elements have a higher depth. Thus, they are behind and seems to move slower.
But in a standard 2D game in Unity, we use an Orthographic camera. We donât have depth at render.
About the camera:
Remember the âProjectionâ property of your camera game object. Perspective means that the camera is a classic 3D camera, with depth management. Orthographic is a camera that renders everything at the same depth. Itâs particularly useful for a GUI or a 2D game.
In order to add the parallax scrolling effect to our game, the solution is to mix both choices. We will have two scrolling:
The player is moving forward along with the camera.
Background elements are moving at different speeds (in addition to the camera movement).
Parallax Scrolling
Here is the script for Scrolling background:
//------ Script is created by --------// //---------------- OZ ----------------// //------ http://ozappstudio.com/ -----------------// //------ http://ift.tt/1ok9fLP --------//
using UnityEngine; using System.Linq; using System.Collections.Generic;
public class InfiniteScrolling : MonoBehaviour { public float speed; private List backgroundPart;
void Start() { backgroundPart = new List(); for (int i = 0; i < transform.childCount; i++) { Transform child = transform.GetChild(i); if (child.GetComponent() != null) { backgroundPart.Add(child); } } backgroundPart = backgroundPart.OrderBy ( t => t.position.x ) .ToList(); }
void Update() { transform.Translate (Vector2.right * Time.deltaTime * speed);
Transform firstChild = backgroundPart.FirstOrDefault();
if (firstChild != null) { if (firstChild.position.x < Camera.main.transform.position.x) { if (firstChild.GetComponent().IsVisibleFrom(Camera.main) == false) { Transform lastChild = backgroundPart.LastOrDefault();
Vector3 lastPosition = lastChild.transform.position;
Vector3 lastSize = ( lastChild.GetComponent().bounds.max â lastChild.GetComponent().bounds.min );
firstChild.position = new Vector3(lastPosition.x + lastSize.x, firstChild.position.y, firstChild.position.z);
backgroundPart.Remove(firstChild); backgroundPart.Add( firstChild ); } } } } }
Explanation of Scripting:
We need a public variable to turn on the âloopingâ mode in the âInspectorâ view.
We also have to use a private variable to store the layer children.
In the Start() method, we set the backgroundPart list with the children that have a renderer. Thanks to a bit of LINQ, we order them by their X position and put the leftmost at the first position of the array.
Sprite Renderer Extension:
We Also need some tweaking in our sprite renderer to check if the sprite is visible or not in camera. and also to calculate its bounds dynamically.
Here is our SpriteRendererExtension Script: //------ Script is created by --------// //---------------- OZ ----------------// //------ http://ozappstudio.com/ -----------------// //------ http://ift.tt/1ok9fLP --------//
using UnityEngine;
public static class SpriteRendererExtension { public static bool IsVisibleFrom(this Renderer renderer, Camera camera) { Plane[] planes = GeometryUtility.CalculateFrustumPlanes(camera);
return GeometryUtility.TestPlanesAABB(planes, renderer.bounds); } }
 Note: We use GeometryUtility for calculating view of our Camera to the sprite.
Infinite Scrolling of 2D Background in Unity3D using C# (Snapping Bound To Bound)
Infinite Scrolling of 2D Background in Unity3D using C# (Snapping Bound To Bound)
Parallax scrolling:
An effect that you find in every single 2D game for 15 years is âparallax scrollingâ.
To make it short, the idea is to move the background layers at different speeds (i.e., the farther the layer is, the slower it moves). If done correctly, this gives an illusion of depth. Itâs a cool, nice and easy-to-do effect.
Idea ???
Adding a scrolling axis need a bit of thinking on how weâŚ
View On WordPress
Learn how Unity3D can help you create games in this article!
Unity3D:
Unity is a flexible and powerful development platform for creating multi-platform 3D and 2D games and interactive experiences. Itâs a complete ecosystem for anyone who aims to build a business on creating high-end content and connecting to their most loyal and enthusiastic players and customers.
In simple words its a cross-platform engine.Easy enough for the beginner and powerful enough for the expert; Unity should interest anybody who wants to easily create 3D games and applications for mobile, desktop, the web, and consoles.
Learn more at Unity
Pricing:
Indie developers rejoice, Unity is free! Well, almost. There is a Pro edition that comes with more features and tools, but will set you back $1,500. Considering the feature set and how permissive the Unity publishing license is, this price is actually very reasonable. However, the free version will let you get your feet wet, build complete games, and even publish them to the desktop and the web without paying a cent! The only caveat is that games published under the free edition will have a small Unity watermark.
Two Different types of pricing:
Even more
Anything built in Unity will work exactly the same way in Unity Pro. This means you can choose to upgrade at any point if you need the additional features, or want to publish to more platforms such as iOS and Android. Thereâs also a 30 day Pro trial you can sign up for in order to test drive all the extra featuresâŚ
Installation:
First, download and run the Unity installer from Unity. You have four different type of installation here:
click the version you want to get started , Iâm using free version & itâs doing great. Select the Platform for Installation , Iâm using Windows Version here:
After Downloading installer ,Start installer and click next:
Accept the Licence Agreement:
Chose the Components of editor you wanted for building games & hit next: Select Install Locations & press next:
Accept the licence agreement for Microsoft Visual Studio:
 Here you go. your download will be started . . .
 Installing Several Versions at Once:
You can install as many versions of Unity as you like on the same computer. The installer on a Mac will always create a folder called âUnityâ and will overwrite any existing folder with this name. However, if you rename the folder to something else before installing then both versions can happily live on the same computer. On a PC the install folder is always named âUnity X.Y.Z[fp]Wâ, where the âfâ is for an official release, and âpâ is used to mark a patch release.
We strongly recommend that you choose the new folder name carefully (eg, add the version number to the end of the name, âUnity4â, etc). Also, be aware that any existing shortcuts, aliases and links to the offline docs will no longer point to the old version of Unity. This can be particularly confusing with the offline docs; if you suddenly find that browser bookmarks to the offline docs no longer work then check that they have the right folder name in the URL.
The Editor:
The unity Editor have 5 basic layouts as:
Scene
Hierarchy
Inspector
Project
Game
Scripting:
Although Unity uses an implementation of the standard Mono runtime for scripting, it still has its own practices and techniques for accessing the engine from scripts. This section explains how objects created in the Unity editor are controlled from scripts and details the relationship between Unityâs gameplay features and the Mono runtime.
Unity supports two programming languages:
C# (pronounced C-sharp), an industry-standard language similar to Java or C++.
UnityScript, a language designed specifically for use with Unity and modelled after JavaScript.
In addition to these, many other .NET languages can be used with Unity if they can compile a compatible DLL. learn more about dll.
using UnityEngine;
using System.Collections;
public class MainPlayer : MonoBehaviour
{
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
Introduction to Unity3D
Learn how Unity3D can help you create games in this article!
Unity3D:
Unity is a flexible and powerful development platform for creating multi-platform 3D and 2D games and interactive experiences. Itâs a complete ecosystem for anyone who aims to build a business on creating high-end content and connecting to their most loyal and enthusiastic players and customers.
In simple words its aâŚ
View On WordPress