Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Building for iOS - Simple game test

$
0
0
Hi all. I almost have my very first game ready for testing on an iPhone. It is a very simple game controlling one object with the current following code: void Update () { Vector3 paddlePos = new Vector3 (0.5f, this.transform.position.y, 0f); float mousePosInBlocks = Input.mousePosition.x / Screen.width * 16; paddlePos.x = Mathf.Clamp(mousePosInBlocks, minX, maxX); this.transform.position = paddlePos; Using this simple mouse clamping code, when exporting to ios, is this automatically converted into something for touch so I can swipe my finger left and right controlling the object or will I need to code in touch swipe controls ahead of time? Thx!

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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