Answer by RedDevil
void OnTriggerEnter(Collider otherObject) { if(otherObject.name == "untitled") { StartCoroutine(animthendestroy()); } IEnumerator animthendestroy() { animation.Play(); yield return new...
View ArticleAnswer by RedDevil
You can just make an empty game object that has a black picture in it with a fade animation.When you die you enable the object and the animation.And you show the text you died
View ArticleAnswer by RedDevil
Add a collider to the terrain and add a collider to the rocks and also add a rigidbody to the rocks so there wont be any problems with the rocks falling.
View ArticleAnswer by RedDevil
Hi.What you chould do is after the game is over to pause the whole game and just add some buttons. To pause the game all the code you need is Time.timescale = 0.0f;
View ArticleAnswer by RedDevil
Hi! If you want it to be at the center you chould use Screen.width /2 ,Screen.height /2. Or you can go at this by using percentages like this: Screen.width * 0.5f,Sreen.width * 0.5f. Now it depends on...
View ArticleAnswer by RedDevil
The amount of frames someone can feel depends on the monitors refresh rate. The refresh rate on 90% of the screens is 59-60 so even if you have 1.0000.0000 FPS you will still feel like it is running on...
View ArticleAnswer by RedDevil
Once you disable the item the script is on, you cannot enable it again because there is no call to enable it since the item is disabled.You need the script that enables and disables the object on a...
View ArticleAnswer by RedDevil
void OnTriggerEnter (Collider theCollider) { if(col.tag == "tagname") { //do stuff } } you need to set a tag name to the object you want to collide with your collider. If you have allot of collisions i...
View ArticleAnswer by RedDevil
alright i made it work by modifying your code: here is the final one: rigidbody2D.AddRelativeForce(new Vector3 (0,Speed)); Submit that code as answer and i will accept it. Thank you
View ArticleAnswer by RedDevil
I downloaded the latest patched version and i guess it also reseted some values and it somehow worked.
View ArticleAnswer by RedDevil
Since i could not really find a good way to do this with PointerEventData i just changed my code so that i can achieve what i was after. The way I solved the problem is by changing on PointerDown to...
View Article