Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.
1
vote
1answer
33 views
Polygons vs sprites rendering performance in Unity for windows phone 8
I'm currently building a windows phone 8 game with unity, having 111 (no more no less) sprites being updated each frames. I have a strong overhead in the profiler (70% to 90% minimum) I tried the ...
0
votes
1answer
33 views
Create texture the size of my mesh
I programmatically create a Mesh and want to generate a texture that patches coloured squares together so that the patchwork perfectly matches the vertices.
The mesh's dimensions are expressed in ...
0
votes
1answer
31 views
Moving rigidbody2d towards mouse click using AddForce
I cant get my rigidbody2d game object to move to where i click the mouse. The first click works. The object travels to the mouse click and stops. But the second time (or the third time) i click the ...
-1
votes
2answers
32 views
Unity score on touch adding up incorrectly
I'm currently working on a game where a user can click an object and this should increase their scored by 1. Unfortunately it seems to be increasing it by more than 1 sometimes and I can't figure out ...
-1
votes
0answers
19 views
Strange alpha-blending layering artifact
I am quite new to the shader world, and I am creating a pixel-lit and vertex-colored shader, based on the answer for my question at "Shader which supports vertex colors and pixel lights?". I'm having ...
2
votes
0answers
27 views
How can I get this Shader for Unity working with Normal maps? [on hold]
So I'm by no mean a shader coder, but I've been hacking around the last few days trying to get working a shader for the sprites of the skeletal animation tool Spine in Unity that can properly use ...
-1
votes
1answer
24 views
lerp z rotation towards mousepointer
I am trying to get transform.rotation.z to chase the mouse pointer at a rotation speed. But I get a very weird results and can't figure out what I am doing wrong.
var mp = Input.mousePosition;
...
-1
votes
1answer
32 views
Lerp speed or lerp time [on hold]
Am I right about the fact that lerping can be done over a set period of time or at a speed which will continue until the target is reached?
How are the formulas for the two? Is it something like ...
0
votes
0answers
37 views
Raycast only to first hit
Im using the following code to make a cursor follow the mousebutton and move the player to where the cursor is when mouse is clicked. But how could i do so that it only works if the mousebutton is not ...
2
votes
1answer
92 views
Strange collision behaviour in 2D game even though the collision is very basic
I have a player ship (cube) and some enemy laser projectiles. When the player ship has position X values greater than 1, collision with the enemy projectiles occur but when it has lower X values, the ...
0
votes
1answer
67 views
Match-3 “find matches” function not returning correctly
So I'm in the process of making a simple bejeweled clone and for some reason my "find matches" function is having problems. I've broken it up so it check horizontally, then vertically and right now ...
0
votes
0answers
37 views
How to split a mesh plane
I'm working on building a terrain from an arbitrary mesh; however I'm now in need of some assistance on how to split the terrain into smaller sections. I'd like to start by splitting it down the ...
5
votes
2answers
150 views
How can I keep two racing players synchronised?
I am working on a Unity mobile game, much like a multiplayer version of Temple Run. I'm seeing a fluctuating network latency (generally 200-500ms) because of the mobile platform.
The two player ...
0
votes
0answers
35 views
How to make a game like flick shoot,flick kick foot ball in ios [on hold]
iam a begginer in games and am thinking about to make a game like flick shoot for iphone.so how can i proceed and which is the best tool for this game.
-1
votes
1answer
25 views
Lerping back and forth in Coroutine [on hold]
Im trying to lerp the scale of a game objecto to 30% its size and then back again, but all i get as output is "
Blippping Cursor
up scale 0
down scale 0
IEnumerator Blip_cr ...