2D Movement Stutter w/ Basic Project

Hello Forums

I apologize for posting this when it has been asked before but none of the other solutions seem to help with my problem.

I have been working in Unity for what’s going on two years and today is the first time I’ve started moving to Unity5, I also haven’t been working with Unity for about 2 months. The project I had been working on was a shmup and to warm back up with Unity I wanted to make a quick Galaga clone but I ran into an issue.

The first issue is that in the editor with the white sprite and the black background I noticed a somewhat minor stutter when the ship could begin moving left or right. Not really like lag but more like it would go to it’s next position and then take a very minor hop back. I naturally began searching the forums.

After an hour long search I ended up messing around the vsync and code with no real avail. vsync seems to have something to do with it but no matter what setting I changed it to the problem still remained. Eventually I built the game and ran in a PC environment and the stutter did not seem to be there so all was well. I could deal with it just being in the editor but then I built it on the web and the problem returned.

So I reset everything, unity, my computer, and the entire project and begin with the most basic shmup scene I could put together. The stutter remains.

I uploaded a video on youtube and if you put it on the 720p/60fps setting the stutter should be clear.

Here is the only script of code that is in the game –

using UnityEngine;
using System.Collections;

public class Move : MonoBehaviour
{            
    void Update ()
    {
       if (Input.GetKey("right"))
        {
            transform.Translate(Vector2.right * 5 * Time.deltaTime);
        }
       if (Input.GetKey("left"))
       {
           transform.Translate(-Vector2.right * 5 * Time.deltaTime);
       }
    }
}

I’ve also tried

using UnityEngine;
using System.Collections;

public class Move : MonoBehaviour
{             
    void Update ()
    {
       if (Input.GetKey("right"))
        {
            transform.position += new Vector3(1 * 5 * Time.deltaTime , 0, 0);
        }
       if (Input.GetKey("left"))
       {
           transform.position += new Vector3(-1 * 5 * Time.deltaTime, 0, 0);
       }
    }
}

I have two monitors and it looks the same on both.

Anyways I could use some advice.

On a side note I’ve been trying to look up guides on optimizing movement and an analysis of movement options but I haven’t found anything other than pixel perfect movement which isn’t necessarily what I’d like to see.

Thanks for any help from Jesse Bergerstock or “illMadeCoder”.

Did you find a solution? I’m having the same problem!

This is the 3rd necro post you’ve made. This post was made in 2015, another post you replied to was from 2014.

Please, if you have a problem then simply create your own thread describing what you’re doing rather than assume your problem has the same root cause as these old posts.

Thanks.

You are very rude MelvMay, who the hell do you think you are, just because you have a little power. I will be making a complaint against you to Unity.

Thanks!

Your anger is unwarranted. I am not sure how informing you about necroing posts like this and saying please and thanks is rude. Please note that it is against the Unity Community Code of Conduct and we have a lot of posts like this, hence the attempt to reduce it.

Either way, you are welcome to complain. I would ask however that you please refrain from necroing old posts.

Thanks.

I’m did not just “assume” that I have the same problem as them! You are rude for saying that as you are assuming you know more about my situation than you could ever.
What is the forum for then?? I can’t contact everyone with the same problem to increase my chances of an answer? YOU made a judgement of my “Necro” behavior is what happened!

I would like to add that if you create your own thread, provide some information on what you’re doing, you’d find that I’d likely be the first person to help you solve this issue.

Any extra information you can provide will help.

Please reduce the anger here, it’s completely unwarranted. If you came here for help, please create your own thread. That way myself and/or others can actually help you.

Hey, don’t be turning it around on me now that I stand up for myself and you didn’t expect someone to, cuz no one ever does on here. I came on this forum to find help and an answer is all and get greeted with a cheeky comment about me assuming things. Your “help” was completely unwarranted first of all.

MelvMay has been completely professional. Just make your own post with details about your problem. But be warned, if you come at it with an attitude like above, you will receive little to no help. Don’t bite the hand that feeds you

You don’t know how to talk to people then if you think giving a cheeky answer makes people feel good. And I am not biting the hand that feeds me, how did he help me?

All you have to do is create a thread detailing your problem but instead you are here arguing. You have been warned by a moderator to not necro posts and you are still arguing.

I’m going to close this old thread. The original poster hasn’t been around for nearly 7 years. Please create a thread that details your problem.

1 Like