Unity2D side collision detection
I have a character and a box, i'm trying to understand which side of the character had collided with which side of the box, I made some research and saw some usage of transform.InverseTransformPoint...
View ArticleWhere do we store images for Facebook feed?
Using FB.Feed to allow the players to post to Facebook from the game, we need a url for the post's picture. That url can link to an existing website/image. Do we have the create and manage a server to...
View ArticleIs this the correct way to render 2D textures programatically?
I've been bashing my head trying to render tiles in 2D for my game. I've had issues with the sizes and coordindates not coming out as expected, but I've finally got some working code. However; it seems...
View ArticleReasons for RenderTexture.Create() to fail?
We're using RenderTextures to dynamically create portraits for characters and save on deployment size, but RenderTexture.Create() has been returning false on some devices and computers, and sometimes...
View ArticleCentre of Gravity
I have a tank that i am controlling in game with collider and rigid body attached When it is moved to the edge of a platform it should fall off when the centre of the tank is over the edge. But it...
View Articlemovement 2d in a grid
hey I have a Question about 2D Movement. I can controll my player just fine and everything, but I want my Player to move in a kind of grid. So if i would put a grid as Backgound (just to make it clear)...
View ArticleHow can I calculate new direction angle when player hits wall diagonally?
I want to make snake to bounce off of wall, I need only to change direction. For example, if it hit left wall at 45deg going up it needs to rotate to the right for 90deg, and continue going up and...
View Articleunity game crashes if I press home button on game circle layout screen
I've made a game on unity and added amazon game circle leaderboard in it. My leaderboard works fine but if I press android home button while on leaderboard screen and then reopen y app after opening...
View ArticleMulti-touch randomly breaks on WP8 when not plugged in to PC
I'm developing a game where you have to press buttons in the correct order: there's one button on the left side of the screen and one on the right. If you press one button, it works just fine, but if...
View ArticleCode not working, don't know why
This code is attached to a projectile which is supposed to lock on to the closest object tagged with Enemy. I have no idea why my code doesn't work, so i am hereby asking if anybody knows how to fix...
View ArticleIAP init failed?
I'm getting IAP init failed. i'm running just a modified IAPTest.cs in my own scene. - bundle id matches - item id's match - using test account - debug output says canMakePayments is true - error...
View ArticleLoop Animation
I have the free version of unity. I tried to animated something but I don't have the "Show:" at bottom left or anywhere else, because of that I can't loop my animation. Does anyone have a solution ?
View Article[mecanim] what exactly is damptime and deltatime in setfloat parameters?
I am trying to use 2D BlendTree in mecanim, and I would like to fade the float speed from 0 to 1, it's accomplished by: animator.SetFloat("speed", desiredSpeed, damptime, deltatime) but I still don't...
View ArticleMultiple Colliders Trigger problem
hi community, i'm completely stuck with colliders as triggers. i have made a script that adds a box collider to an empty gameobject and adds this as a child to a gameobject. this box collider scans...
View ArticleHow do I fix this broken walking animation start in C#?
Hello all, Here is an extremely basic C# script that I wrote to test out a walking animation. I will go back later in the project and hopefully add booleans to control it so I can add jumping...
View ArticleDestroying then recreating objects
I need help with a game I'm making, I am a beginner in Unity. I trying to make a bomb launcher and when you place a bomb it will detonate after a certain a mount of time. But when the object is...
View ArticleCollission detect
Okay, so i want to check if my collider is colliding with trigger, but without OnCollisionEnter... Is there any way to check if i'm touching trigger collider but without it ? ( if you really want to...
View ArticleRotation Jumping values (0 to 180)
I am having an issue where `eulerAngles.y` is returning a Y rotation value that jumps when I move the character head up and down (X axis). So when I move the head up (above green line), `eulerAngles.y`...
View ArticleEfficient Way of Splitting a Mesh into Four
So what I am trying to do is split a procedurally generated deformed plane into four deformed planes, however, I have little to no idea as to how to efficiently do this. The plane is just a normal...
View ArticleParsing Error?
Here is the error I'm getting. "Assets/Scripts/DeathAnimation.cs(3,12): error CS8025: Parsing error" This is the code #pragma strict private var frames : Texture[]; private var count : float; private...
View Article