Quantcast
Channel: Answers for "Player movement boundaries"
Browsing latest articles
Browse All 4 View Live

Answer by Jaap Kreijkamp

function Go() { horizontal = Input.GetAxis("Horizontal") * speed * Time.deltaTime; vertical = Input.GetAxis("Vertical") * speed * Time.deltaTime; var pos : Vector3 = transform.position; pos.x =...

View Article


Answer by Calum1015

Unity 5 now offers an asset package named "2D" In this package there is a boundary in which when a tag named player hits this GameObject it resets your position. Hope this helps.

View Article

Browsing latest articles
Browse All 4 View Live


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