Hi everyone. I’m working on a new project from the ground up. It’s an infinite runner that has a “top down” view with three “roads” and the idea is that the player moves their character up and down to avoid any obstacles.
Here’s an examples I built with random internet assets (Don’t mind the Kirby, it’s just a place-holder)
As of it is right now, the character only has an up-down movement since the horizontal movement will be the “world” moving from right to left.
My idea was to make the MC(main character), with an input of the W-S keys, go up and down to a fixed position marked by different collision objects via updating its position with the position of that corresponding marker. Thing is I can’t get the position nor world_position of those objects. I tried to see if I was getting the value but all I was getting is either 0,0,0 for a position or “expected vector3 got string”.
I’ve read the different manuals on setting the character position with the mouse input/touch but it didn’t work properly either and also watched plenty tutorials on youtube looking for different approaches, alas I’m in a standstill. Any tips on how to approach this?
Edit: Got the position on touch working as intended with the manual. It was a syntaxis error on my end.