Quantcast
Channel: Answers by "Artifactx"
Browsing all 14 articles
Browse latest View live

Answer by Artifactx

Hey you should try adding a rigidbody to your gameObjects and try this: function OnTriggerEnter (other : Collider) { print("I just hit something"); }

View Article



Answer by Artifactx

There are many ways you can do this, one is using PlayerPrefs. You can make a method like thi to store your highscore: public void SaveData() { PlayerPrefs.SetInt("Player Score", player.Score); } And...

View Article

Answer by Artifactx

Update is called once per frame, I don't think that you would be able to predict which script is called first. Just did some testing and the script I attatched to the game object last got called first,...

View Article

Answer by Artifactx

I would do something like this, I have written it in C# since thats the language I know. But I'm sure you can translate it to JS. It throws a raycast on the mouse position and puts the hit object into...

View Article

Answer by Artifactx

have you tried to calculate your speed like this: public var speed : float = 10.0; var amoutToMove : float; function Update() { amoutToMove = speed * Time.deltaTime; vad = Input.GetAxis("ShipSpeed") *...

View Article


Answer by Artifactx

I'v made a tutorial the explains how you can create cut scenes in UNITY. https://www.youtube.com/playlist?list=PLX-uZVK_0K_7mVKGk0MOoSOMw4kjVapOA

View Article

Answer by Artifactx

If you add script to your character it will disable the root motion when you are off the ground, and enable it if you are on the ground. private Vector3 m_GroundNormal; private bool m_IsGrounded;...

View Article

Answer by Artifactx

Hey you should try adding a rigidbody to your gameObjects and try this: function OnTriggerEnter (other : Collider) { print("I just hit something"); }

View Article


Answer by Artifactx

There are many ways you can do this, one is using PlayerPrefs. You can make a method like thi to store your highscore: public void SaveData() { PlayerPrefs.SetInt("Player Score", player.Score); } And...

View Article


Answer by Artifactx

Update is called once per frame, I don't think that you would be able to predict which script is called first. Just did some testing and the script I attatched to the game object last got called first,...

View Article

Answer by Artifactx

I would do something like this, I have written it in C# since thats the language I know. But I'm sure you can translate it to JS. It throws a raycast on the mouse position and puts the hit object into...

View Article

Answer by Artifactx

have you tried to calculate your speed like this: public var speed : float = 10.0; var amoutToMove : float; function Update() { amoutToMove = speed * Time.deltaTime; vad = Input.GetAxis("ShipSpeed") *...

View Article

Answer by Artifactx

I'v made a tutorial the explains how you can create cut scenes in UNITY. https://www.youtube.com/playlist?list=PLX-uZVK_0K_7mVKGk0MOoSOMw4kjVapOA

View Article


Answer by Artifactx

If you add script to your character it will disable the root motion when you are off the ground, and enable it if you are on the ground. private Vector3 m_GroundNormal; private bool m_IsGrounded;...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images

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