Hello, I am making a sidescrolling game, with 3 lanes of movement. If Z is up, and Y is forward, the three lanes will be on the X axis.
I am trying to have the character on the center lane, as default, call it the 2nd lane, but if you press W, the character will move to the furthest lane, call it the 1st lane, on the release of W, the character will return to the middle, default lane, the 2nd. The same can be said of pressing S and the character moves to the closest lane, the 3rd, and on release, the character moves back to the 2nd.
Now I am new, so I am learning blueprints, and so how I thought about doing this, is assigning a coordinate value on the X-axis to a variable, and calling that variable on pressing the correct input like this.
On press> SET (PlayerPosition)(X)>SET(Boolean) True
On Release>SET(PlayerPosition)(X)>SET(Boolean) False
With the first Set calling on both the PlayerPosition variable and CharacterMoment
So my question is, how do you set up a variable as a coordinate position, and would it be a float or integer?
Or am I going about this all the wrong way?