- Home /
 
 
               Question by 
               Skyadillo · Nov 11, 2016 at 08:33 AM · 
                c#2dscripting problem  
              
 
              How to "slide" sprite a set distance?
Sorry if this is a dumb question, I'm just getting started with Unity, and scripting in general. My problem is that I want to move a sprite across the x axis automatically. A bit like the way Oregon Trail does it, the wagon moves a certain distance every turn automatically. I don't even know where to start. Any help will be much appreciated. I don't know if I described my problem well enough so just let me know if ou don't understand. Thank you in advance!
               Comment
              
 
               
              Sorry about the title, this is my first post and am still getting the hang of things.
Answer by Skyadillo · Nov 12, 2016 at 09:23 AM
Haha, stupid me. I realized I was using the right code (transform.Translate) but I needed to use it in update stead of start(obviously).
Your answer