Hello I’m just new with developing. Any ideas on how to go up by pressing the interaction keymap and also be able to move straight if i want to. Thanks!
Up
as in towards the wall so you can reach the staircase?
Yes i want my character (main character that im controlling) to go further back and go up the stairs (by pressing interaction button letter x or e) at the same time i can choose not to go up and just go straight.
Sorry for my english
Could you clarify how this should work? Are we manually controlling the character the entire time or tap a button once and they go behind the wall, up the stairs and to the 2nd floor?
Once you go near to the stairs press e then my character will be able to go up manually (controlled by us).
- added a new
Axis Mapping
- disabled
Plane Constraint
in the player’s movement component
- a new
aTransitionArea
actor with a couple of box components:
- script in the Player BP:
How it works:
- when the player enters the
aTransitionArea
actor allowing for additional movement behaviour, we flag it with theis Inside Transition Area
boolean - E queries the above variable and sets
Enable Depth Traverse
bool to the same value - in order to
Move Forward
behind the wall, both booleans must beTrue
- when the player leaves the
aTransition Area
actor, we set both booleans toFalse
Another alternative is to use this directly:
Thank you for teaching! Finally it worked
1 Like