Resolution Problem

Hello i created i game…Its working fine one my HTC M8.
But i tested it in a lg l65 (480x320)
and its unplayable! Although when i select 480x800 in unity its working fine!!???
PLEASE HELP

Well 480x320 is crazy different from 480x800. So unless you have implemented good UI scaling you’re going to see some nasty stuff. If you’re using the OnGui call I have no idea how to help you. If you’re using the new UI then make sure your elements are all anchored correctly and the canvases scale correctly.

i mean 480 x 800 my false!!
no problem with ongui …i have a problem with my obstacles they behave mad

Some screenshots would be great to see, what your problem is exactly.

i have a script for my obstacles
that calculate the distance of my player IF THE DISTANCE IS smaller than a value they start moving…
i have one obstacle in the right and one in the left part of my screen

thats the script for the right obstacle for example!!

using UnityEngine;
using System.Collections;

public class movewhenminus : MonoBehaviour {
    public float distance;
    public float distancer;
    public float speed2;
    public Transform target;
    public float obstaspeed;
    public float value;



    // Use this for initialization
    void Start () {
      
    }
  
    // Update is called once per frame
    void Update () {
      
        distance =Vector3.Distance(transform.position,target.position);
        if ( distance < 27f) {
          
            float value = GameManager.Instance.moveFactor;
            distancer = 100 - value;          
            transform.position += new Vector3 (distancer * Time.deltaTime/15 * -obstaspeed  , 0.0f , 0.0f);
        }
      
      
      
    }
}

MAYBE THE DISTANCE IS DIFFERENT IN DIFFERENT RESOLUTIONS??
BECAUSE THE OBSTACLES ARE CLOSING TOO FAST AND MY PLAYER CANT PASS THROUGH THEM!

ALTHOUGH IN MY HTC ONE M8 AND ON MY TABLET ITS WORKING JUST FINE

If you’re using UGUI, simply set the Canvas Scaler to “Scale With Screen Size” then set the reference resolution to “480x320”. It will look the same across all resolutions.

Edit : Just realized that UI wasn’t your problem.

thanks to all of you …
It seems that i found what the problem was!

im using a random number generator that my obstacles get the instance number from
and they cover a distance!
i had the random range to 0,100 and my obstacles speed low…
i tried changing the radnom range to 0,20 and making my obstacles move faster so im done now!!
thank you very much everyone have a nice day