Android pinball game

Updated on April 26, 2017 in [A] Other Answers
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
1 on April 26, 2017

Hello all,
I am attempting to create a pinball game an android phone, and I am having massive difficulty finding a way to have the left half of the screen control the left flipper when touched and equally for the right side and right flipper.
Any help on this is greatly appreciated.

  • Liked by
Reply
0 on April 26, 2017

Have a look at this:
https://docs.unity3d.com/ScriptReference/Camera-pixelWidth.html
https://docs.unity3d.com/ScriptReference/Screen-width.html

You can get the width or height of the screen, then you can divide it by 2 and then check if the input is bigger or smaller 1/2 the screen size.

  • Liked by
Reply
Cancel