object moves faster in full screen in webplayer

i dont know why but the enemy pod i made moves like 2 times as fast when i switch to fullscreen. i know i did nothing to it to make it do this but for some reason it moves fast in full screen and regular speed in not full screen. (it moved with transform if that helps any)(also i was playing this on the webpplayer)

Did you forgot to multiply your speed with Time.deltaTime???

Without your movement speed is framerate depended, so more FPS (Fullscreen) you move faster.

i dont know the only thing moving the object is transform.Translate(0.0,0.0,0.1) i have never had this problem before.

if you do it in update, you must multiply it with Time.deltaTime otherwise the change is FPS dependent and in fullscreen the webplayer is not locked to 50fps

oh fixed. :stuck_out_tongue:

(i cant beleave i made my first AI and forgot still managed to forget something as simple as FixedUpdate)

FixedUpdate really isn’t the way to go. As people have suggested multiplying by Time.deltaTime makes sure that these sort of things are framerate independent.

For example:

transform.Translate(0.0,0.0,0.1 * Time.deltaTime)

Only remember that the speed is no longer per frame, but per second, so instead of 0.1f, use 3.0f - 9.0f depending on framerate.

This guarantees that the speed of your game is the same across all platforms and configurations.