Search Unity

moving at different speeds , question

Discussion in 'General Discussion' started by Terspet, Mar 15, 2023.

  1. Terspet

    Terspet

    Joined:
    Jan 20, 2023
    Posts:
    5
    hey, so i decided to start my own project and want to invest a little more time this time for learning purposes, this time i want to make like a pokemon style top down leve where you can walk normaly or by pressing a button, spring and my question is, how can i make it so?

    here is a picture of my current script i just started out working on, for me it makes sense, but it dosnt work and there sure is a reason for it and i like to know it if its possible.

    https://imgur.com/a/tz9XPHQ

    thanks in advance to any answers, also realy sorry if this is not the right place to ask for it, i realy struggle to know what belongs where in this forum :(
     
  2. Terspet

    Terspet

    Joined:
    Jan 20, 2023
    Posts:
    5
    allright, ignore this post, after looking at the picture i posted i realised i did not put runspeed variable where it should have been, now it works :/ sorry for wasting your guys time