Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.
0
votes
0answers
11 views
Methodology for scenario creation [on hold]
We are going to create a 2D zelda-like game with an static world (not procedurally generated), where exploration and interacting with the scenario is the focus of the game.
We have a rought idea of ...
0
votes
1answer
11 views
Remove previous scenes from memory in Unity 3d
I'm making a game in unity3d which I optimized as much as I can.
I've made different levels in each scene.
After a few scenes the game starts to lag on mobile devices. And works smoothly if ...
1
vote
1answer
14 views
Unity 4.6: why Image object doesn't stretch all sides of canvas
I insert a canvas, after that, I insert an image at center. Then, I want to stretch this image over this canvas, so I choose last option as below:
But the image doesn't stretch to fit the canvas, ...
1
vote
2answers
108 views
Unity: Make camera center of screen
Here is my camera setting:
With this setting, when I run, game is not center of screen:
Please tell me how to fix this.
thanks :)
0
votes
1answer
22 views
GUI.Box z-index for mouseover
So I am drawing an inventory with slots like so:
private void DrawItemSlotAndAttachActions(Item currentItem, Rect slotRectangle, Event e, int itemSlotPosition)
{
if (!(currentItem is ...
1
vote
1answer
52 views
How to synchronize damage with attack animation in a RTS game?
I have been working on a RTS game in unity and did damage deal through code and a timer but it does not fit with the animations quet well. The damage is dealt in the beginning of the animation and ...
0
votes
1answer
13 views
click to move, RigidBody2D error I am suspecting?
I have been working a bit on this, and I can't figure out why the velocity of Rigidbody2d is going haywire.Character bumps the air like crazy if isKenimatic is toggled off, elsewise he moves ...
-3
votes
1answer
59 views
Does Unity 3d cost money? [on hold]
So I installed an Unity engine and I want to develop games by that.
I heard that it costs 1500$ to program the code and post the game. Is that true? Did some1 developed a game with it and uploaded it ...
0
votes
0answers
15 views
How can I increase the horizontal speed of something every N seconds in Unity and make it STAY increased? [duplicate]
I have these particles that only move horizontally and to make the game harder I would like to increase the speed of these particles every 5 or so seconds. I am not sure how to do this I am still ...
0
votes
2answers
67 views
How to stop objects pushing each other away on collision?
I'm creating something along the lines of Super Smash Brothers. There's a problem with the collision between the two players and projectiles.
We have rigid body on the characters and projectiles and ...
1
vote
1answer
74 views
Do I need the dev kit in order to release for Wii U?
In nintendo's developper website I found this quote.
Q: How much does it cost to develop on Wii U?
It’s free of charge to participate in the program and to submit games
to Nintendo for ...
0
votes
1answer
45 views
How to add a logo to a captured image?
I have a plane which contain a WebCamTexture and a button to capture the image
script to capture the image
void CaptureAndSave () {
Debug.Log (Camera_panel_script.webCameraTexture);
...
-2
votes
0answers
40 views
i want to increase timer by 40 sec but code is not working . help me [on hold]
using UnityEngine;
using System.Collections;
public class Timer : MonoBehaviour {
public double timeremaining = 40 ;
public double newcount ;
// Use this for initialization
void Start () ...
1
vote
1answer
44 views
Rotate on key down, revert rotate on key up?
How would I rotate an object a certain number of degrees when the left arrow is pressed and then rotate it back to its start when the left arrow is released?
4
votes
1answer
43 views
Blocking Physics Raycasts with Unity's 4.6 UI?
I use raycasts to determine hit objects and object selection in our game. I want these to be blocked by UI elements. Before I had a crude form of that where I just excluded rects of the screen, though ...
-1
votes
2answers
39 views
Accelerometer bike game rotation help
Hi I've been making a game for the last few months and not sure what to do.
It's a 2d bike game and I want the rotation done with accelerometer, at the moment To test on computer I've set the ...
0
votes
1answer
37 views
How could you create an SSX style snow trail in unity3d?
So it SSX (a snowboarding game) when you are snowboarding you leave behind a dents in the snow(like a trail) .It's like how if you take a step in the snow you will leave a footprint behind but with a ...
0
votes
0answers
16 views
Unity: Animation Controller: Does “atomi” attribute in 4.6.3 same with “has exit time” attribute in 5.0
I'm viewing tutorial that base on Unity 5.0. In this version, I see an option which name is: has exit time:
But on my Unity version is 4.6.3 doesn't have this option instead atomic.
AFAIK, it ...
0
votes
0answers
47 views
Anti-Roll bar doesn't work
I'm making a racing game in Unity that has trucks as vehicles. For the truck movement, I'm using WheelColliders. After some testing, I found out that after a certain speed (~60km/h), turning made the ...
0
votes
0answers
29 views
LineRenderer is not collide [on hold]
I am trying to make a jumble word game in which there are number of English letters in matrix form and the user needs to make a proper English word by drawing a line between letters. The line can be ...
1
vote
0answers
48 views
Building Mesh topology the math behind it
I'm trying to know the math of building a topology like that from a set of vertices P1,P2,P3, and get the desired indices for those triangles.
Currently I'm just making a plane but I don't take ...
-2
votes
0answers
32 views
i am trying to access static variable from class “Scoremanager” to “Timeincrease”.but i have got an error [on hold]
using UnityEngine;
using System.Collections;
public class Timeincrease : MonoBehaviour {
//public Scoremanager plustime ;
Animator animax ;
void Start(){
int x = ...
1
vote
1answer
31 views
Pick which directional light shades which object
Suppose you have two directional lights pointing at one sphere from different angles. You would expect the sphere to cast two shadows, but it turns out that this isn't the default behavior. The first ...
2
votes
1answer
45 views
Cannot use DLL in my Unity project
I'm pretty new in Unity and i'm trying to write reusable code to use across multiple "project". So I wrote this class to POST and GET highscore via WebRequest. I compiled the project to a DLL and ...
0
votes
0answers
24 views
Raycasting from vertices is not working
I have two perpendicular planes in xz and yz like this
I want to find the projection of the vertices of plane 2 on plane 1 using raycasting.The rays are hitting the plane but the log is showing ...
0
votes
0answers
17 views
front camera not working in unity 3d android
i have this peace of code :
public string deviceName;
WebCamTexture webCameraTexture;
public Text txt;
private WebCamDevice[] devices;
private WebCamTexture webCam;
// Use this for initialization
...
1
vote
1answer
50 views
From XML to class method
I'm trying to implement a dialogue system for a game in Unity(c#). I'm going to use xml cause I want the dialogues to be editable/added from outside. I have a practical problem.
Let's say I got this ...
1
vote
1answer
137 views
Camera is centered on character, but doesn't show character in game window
I'm using Unity 4.6.3. I create an animation from sprite. When I press Play button, I see animation plays on scene window, but on Game Window, I don't see anything.
Here is Inspector for main ...
2
votes
1answer
167 views
Pathfinding and clusters
For an assignment, I am required to implement an A* algorithm in order to find the shortest path between two object using different heuristics
null, this effectively becomes Dijkstra
Euclidean ...
0
votes
1answer
48 views
How do I convert a vector into a distance?
I'm doing a 2D raycast where i have to pass distance. The scenario is this:
I'm using rigidbody2d.Moveposition to move my character instantly. However, before a character is moved, i want to do a ...
0
votes
2answers
31 views
Why is this 2d game object platform not moving [on hold]
I found this code on a website and translated it to C#. While there are no errors, the platform still doesn't move. It's probably something really simple but I can't figure it out.
My game scene:
...
0
votes
1answer
48 views
How to find the closest point on a plane
So I have this terrain with a perpendicular plane setup, now I want to move the vertices of the plane to their closest resp. vertices on the terrain.
I made a drawing to illustrate my thoughts.
...
0
votes
0answers
23 views
how would I change an objects fixed angle via collision with another object
so what im trying to do is have an object change its fixed angle once it gets hit with an object via collision or if theres a better way but this is the code that i was using for
a slingshot weapon i ...
0
votes
0answers
18 views
Unity 4.6: sprite image automatically splits to single sprites when clicking
I'm viewing Unity tutorial. As in this tutorial, I see when author clicks to sprite image, they will automatically divide to each frame as below:
But in my Unity, I just can view this:
So. My ...
0
votes
0answers
83 views
Most efficient way to achieve the following 2D heat wave background effect?
In Unity, what would be the most efficient way to achieve the following heat wave background effect
Super Metroid - SNES (skip to 34m 5s for those on mobile)
http://youtu.be/yB317FOcU0Y?t=34m5s
...
0
votes
2answers
60 views
How to make instantiated objects not on top of each other?
I randomly instantiate game objects, to create a dynamic "sky map". But some planets appear on top of another ones. I'm trying to solve this problem with Collision detection and Colliders, but it ...
-1
votes
2answers
67 views
Where to start developing a 2D puzzle game [closed]
I would like to start developing a 2D puzzle games, much like sudoku for example. I would like to publish it on Facebook and on gaming websites, like miniclip, agame, kongregate. The game should have ...
-1
votes
2answers
73 views
Rotating an object continously with OnMouseDown
I have a script that works but it does not do what I want it to do. My script makes an object rotate on when another is clicked. However, I want the object to continuously rotate until I click on the ...
0
votes
0answers
15 views
Rotating an object continously in UNITY with onclick [duplicate]
I have a script that works but it does not do what I want it to do. My script makes an object rotate on when another is clicked. However, I want the object to continuously rotate until I click on the ...
2
votes
1answer
72 views
Unintended sliding blocks Unity (5) physics
A game I'm working on right now relies on the Unity physics system for collisions, gravity etc. This all works well except for one strange thing. When an explosive is placed on a stone cube, it'll ...
4
votes
1answer
63 views
Is there a way to check android version running the game using Unity3D?
I want to separate code to run only on android 4.4 or higher. If it's lower, I do not want to run this code. What should I do?
18
votes
3answers
2k views
Should independent game developers target older hardware?
A developer I work with tells me that indie developers should target hardware that is around six or more years old (at max settings). I get the idea that one should allow everyone that wants to play ...
-1
votes
0answers
13 views
“GLIBC_2.1X not found” error with Unity 4.6.2 [closed]
I compiled my game server using Unity 4.6.2 and I'm trying to run it on a debian 7.7 server.
I'm getting the following error:
./Pop.x86_64: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not ...
1
vote
0answers
45 views
How can I get shadows to appear correctly when using a custom projection matrix?
As mentioned in this thread, I'm using a custom projection matrix in Unity. Unfortunately, this breaks the default shadow system in Unity. Thus, I was wondering if anyone knew how to possibly ...
2
votes
1answer
30 views
Interfacing with bill/note acceptors in unity
What ways are there to interface a unity game with a bill acceptor/validator? Usually this type of devices are connecting to a computer using a serial port and communicate over ccTalk protocol. But ...
1
vote
1answer
47 views
Play vs. PlayOneShot
For Unity AudioSource objects, what is the difference between the Play and PlayOneShot methods, besides their method signatures?
Is it simply that PlayOneShot won't stop an already playing sound from ...
0
votes
0answers
40 views
How can I handle ball interaction with lanes in a pinball game?
In a pinball game, how can I handle collision or constraints on the ball for convincing movement on those highway rails/tracks?
I assume using physics and a mesh collider would not work, even when ...
1
vote
1answer
42 views
Importing code from unityscripts
To encourage code reuse- i want to import methods and classes defined in my core unityscripts to be imported into other unityscripts. How do i go about this?
Note: An answer here seems too ...
0
votes
0answers
25 views
In Unity 3D, how can I create tiles with their own variables and access them? [closed]
The problem I'm running across is this - I have a prefab for a space tile for example, and that tile can be a random set of tiles, some animated some not to add flavor.
public class MapGen : ...
1
vote
0answers
21 views
Unity 3d Animation Flickering
We are using 3d bus model for our game in Unity 3d.Animation works perfectly fine on Samsung s3 but some kind of texture flickering occurs on Nexus device.Please help us out how to solve this problem.
...