Quantcast
Channel: Latest Questions by MechanicalGaming
Browsing all 60 articles
Browse latest View live

Can't get colliders right

Right, I'm a total noob at all this I know but you have got to start somewhere, I have tags for like my boundary, ships and shots but they just won't destroy when they collide with each other (like for...

View Article



How to make it smooth

Hi everyone! I've got a small problem with Mathf.Lerp and well... I've kind of got what i want right but the problem I'm getting is that it instantly changes the value to the other one. How can I make...

View Article

Update function won't update?

Right... Not sure if this is a problem with my coding or the update function is just like... Not working. Also, the Instantiated items are destroyed and then the variables are edited... and so I want...

View Article

Fading Not Working

Hi all, I don't know why but the fading that I'm using doesn't really seem to work. The fade doesn't start when the object is created, it starts at the beginning and takes for ever to fade after it has...

View Article

Saving Data

Hi everyone! Just wandering, how can I make my game or even an application save the current data it has in it? So that when the application/game is closed the data is automatically saved and the user...

View Article


Text changes place after build

Hi everyone, I'm having a problem here with UI texts... First off, my games resolution is 500 by 600 and so when I build my game... Some text goes on the side of the screen and isn't inside of the game...

View Article

Audio Problem

Hey everyone! I'm having an issue with audio. I have an object that I want to destroy and to play an explosion audio when it happens but it won't play because the object will be destroyed when it is...

View Article

Instantiate

hey everyone! I'm getting a problem with my code... I've told it to instantiate a "bomb blast" when space is hit but it doesn't... It only does it when the game starts up and never again... Also the...

View Article


Texture not repeating self

Hey everyone! I'm having a samll problem with my textures... I'm trying to apply one to just a normal cube but it doesn't come out like an image. It just becomes like a shade of green or something like...

View Article


OnTriggerExit won't detect player?

Hey everyone! I'm having a small problem with my collisions. You see when I enter the collision area it works fine and the collision becomes true but when I leave it it doesn't go back false. Any of...

View Article

Is it possible to check collision from another object?

The question says everything. Can we detect a collision from an object from another object. For example, a collision that happens to a child object of a body that will make the health go down. Thanks...

View Article

Bullet Moves To Fast To Detect?

Hey everyone! I'm here with another problem to solve! Right, well. All plainly, my bullet moves "too fast" so it doesn't get detected, but I need it to be that fast other wise it might not hit the...

View Article

Android Getting Started

Hey everyone! I'm having a bit of a problem with the scripting side of things on android. Seeing that the Scripting API and Docs don't have that much info in them (no offence Unity), it's kind of hard...

View Article


Phone app Resolution and Screen Size

Hey everyone! I'm having this trouble with a game that I am making. It's a shooter where you must tap on the screen to make the turrets move towards the x,y of the click (finger). I instantiate an...

View Article

Set a prefabs GameObject

Hey everyone! Might have a tricky one here! For my player, I've made 2 Objects, the first one is for the camera and the other is for the body (so that the body doesn't rotate on it's x axes and only on...

View Article


GameObject.Find not working?

Hey everyone! I'm not sure if this is working or not (as in if it is even skipping it) but in my game, it doesn't find a game object. The object is a clone of a prefab (they both are). They spawn at...

View Article

floats and lists

Hey everyone! Got a noob question for you here but I really can't find the solution.... A void requires 2 floats (as in a list) in one (I will share the code after explaining) and another it requires...

View Article


Screen.CursorLock problems

Hey everyone! I'm having a problem with hiding the cursor and locking it in the middle of the screen. It works at first but when I press esc it comes out of it and won't go back in. Here's the code I...

View Article

Cursor Lockmode only works once?

I'm having a problem where the cursor only locks itself once on the screen. I'm using visible along side it too but I stopped that but it still won't lock itself. Here's my code : public class StartUp...

View Article

Painting Textures onto Terrain Via Script

Hey everyone! I'm making an RTS style game at the moment and I have everything in had apart from a map generator. I have a good idea of how to make one but I am missing the most crucial part of the...

View Article
Browsing all 60 articles
Browse latest View live




Latest Images