Hello guys, so i need help for a basic movement script, i’m using 2 canvas buttons, Right and Left and i want to have a displacement when i press them : press the right canvas => Pos z = pos z - 1 and if you press the left one => Pos z = pos z + 1
sorry for beeing so noob i’m beggining ^^
(ps : i can only use C# for some reasons)
oh also wanted to say, the moving system has to do the following thing :
If pos z = 0 and rightcanvas is pressed, pos z = pos z - 1
if pos z = 1 and righcanvas is pressed, pos z = pos z - 1
bump
I’m not sure what you are asking, but here’s a tutorial on creating a button:
As far as the movement use Transform.Translate:
thanks, i’m checking those out