x


Locking movement on iOS?

Hello everyone!

i'm developing a showroom and need your help.

is it possible to make the player unable to move at more than 1 axis at a time?

my imagination is :

if(Input.acceleration.x != 0)
{

        Input.acceleration.y = 0;

}
more ▼

asked Mar 31, 2011 at 02:10 PM

h4wkeye gravatar image

h4wkeye
249 82 62 71

On your other question you asked how to move... If you did the GUI system of W A S D, you can make the player move 1 unit per a button click.... And then have rotation move by a finger slide...

Mar 31, 2011 at 02:53 PM Justin Warner
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4680
x2716
x1562

asked: Mar 31, 2011 at 02:10 PM

Seen: 965 times

Last Updated: Mar 31, 2011 at 02:10 PM