Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Rapid fire Help

$
0
0
Hi. I am making a game where i heed to hold the space bar down and shoots lots of bullets at once and emit a particle. here is my script feel free to add on to it or leave any useful information. Thanks.(its a java script). if(Input.GetButtonDown("Jump")) { var bullit = Instantiate (bullitPrefab,GameObject.Find("spawnPoint").transform.position,Quaternion.identity); bullit.tag = "wormProjectile"; bullit.rigidbody.AddForce(transform.forward * 2000); }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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