x


Different movement speeds over network

Multi-player is a part of my game - at the moment it consists solely of each of the players flying a spaceship around However, I noticed that when I tested it using the Editor on my PC and on my Android phone at the same time, the spaceship on my PC moved a fair bit faster than the one on my phone I'm using

transform.Translate(0, 0, speed * Time.timeScale)

Any ideas on why this is happening, and how I could go about rectifying it? Thanks

more ▼

asked Jun 22 '12 at 07:29 PM

Ben Ezard gravatar image

Ben Ezard
229 2 6 8

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Use speed * Time.deltaTime.

timeScale is the speed that the game is running - nothing to do with the frame rate on the device.

more ▼

answered Jun 22 '12 at 07:31 PM

whydoidoit gravatar image

whydoidoit
33.1k 12 23 101

Ah thanks, I had a hunch that it would be something to do with framerate

Jun 22 '12 at 07:43 PM Ben Ezard
(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x1374
x711
x702
x358
x41

asked: Jun 22 '12 at 07:29 PM

Seen: 361 times

Last Updated: Jun 22 '12 at 07:43 PM