Quantcast
Channel: Answers by "RedDevil"
Browsing latest articles
Browse All 92 View Live
↧

Answer by RedDevil

why dont you just rotate the model? :O

View Article


Answer by RedDevil

If you want to return a string just declare a string variable and if you want to see the string in the console use either Debug.Log either print("bla bla string");

View Article


Answer by RedDevil

I see you are using the sample assets.When you imported that script you forgot to import the cross platform folder.

View Article

Answer by RedDevil

I just put my function: void Start() { StartCoroutine(FunctionName()); } IENumerator FunctionName() { while(true) { yield return new WaitforSeconds(time you want); instantiate enemy yield return new...

View Article

Answer by RedDevil

i would say to try and learn C# because it will be easyer to learn Java(not JavaScript) in the future as it is very similar and also a little of the other C languages

View Article


Answer by RedDevil

You can just use a particle like i did .There is an awesome free particle pack on the asset store called Elementals.

View Article

Answer by RedDevil

if wind is what you want go to GameObject->Create other->Wind zone and set it up as you want .You were talking about some videos but you did not posted them.

View Article

Answer by RedDevil

You can simply do this in the inspector like in this photo: ![alt text][1] [1]: /storage/temp/30107-freze+rotation.png

View Article


Answer by RedDevil

var GA : GameObject = Instantiate(BubblePrefab, BubbleSpawn.position, BubbleSpawn.rotation) as GameObject; GA.transform.position += Time.deltaTime * 5 * transform.forward;

View Article


Answer by RedDevil

if(Input.GetKeyDown(KeyCode.W)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.A)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.S)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.D)) {...

View Article

Answer by RedDevil

Use PlayerPrefs.DeleteAll(); in the start function of that script.

View Article

Answer by RedDevil

Yes there is...in fact you can make all scripts go in what order you want.I was experiencing a similar issue. GO to EDIT->Project Settings->Script Execution Order and there you can add or remove...

View Article

Answer by RedDevil

I dont recomand using this for spawn points: private GameObject SpawnPoints = GameObject.FindGameObjectWithTag("Spawn Point"); If you do this then it will have to search for it everytime. Just declare...

View Article


Answer by RedDevil

Does the coin have a collider set with IsTrigger?

View Article

Answer by RedDevil

this happeds because you are showing it at height of 515 pixels and maybe the mobile phone you are testing this on does not have a resolution that big.To solve this you chould just postion it at screen...

View Article


Answer by RedDevil

You cannot acces the gold amound like this mainScript = GameObject.Find ("Main Camera").GetComponent(goldAmount); GetComponent is meant for getting components of an object.Like getting the transform...

View Article

Answer by RedDevil

#pragma strict var footsteps : PlayerFootsteps; var WoodFloor : BoxCollider; function Start () { WoodFloor = GameObject.Find("Wood Floor Trigger").GetComponent(BoxCollider); footsteps =...

View Article


Answer by RedDevil

You chould either do order in layer of UI or try to move the objects you want on top to be first in the canvas heirarchy.

View Article

Answer by RedDevil

void OnTriggerEnter(Collider otherObject) { if(otherObject.name == "untitled") { StartCoroutine(animthendestroy()); } IEnumerator animthendestroy() { animation.Play(); yield return new...

View Article

Answer 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 Article

Answer 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 Article


Answer by RedDevil

Have you tryed BaseBallcones.transform.rotation = Vector3.zero; ?

View Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer by RedDevil

I downloaded the latest patched version and i guess it also reseted some values and it somehow worked.

View Article



Answer 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
Browsing latest articles
Browse All 92 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>