How can I move my character a little to the right/left, then stop. Just like these endelss runners like for example temple run when you swipe to the side you want to move to. I don’t want to know how to swipe, but easly how to move the player as I explained. Appreciate answers!
I would look at adding an impulse using your character’s “Character Movement” component. I give an example below.
Side Note: There are two flaws to this method. The first one is that you can’t set distance the character will move which means that you will have to tweak the values a lot until you get your desired effect. Another flaw is that your character will move further in the air than he will on the ground. This is do to friction.
An alternative is to change the actor’s location directly. A disadvantage to this method is that if you change the actors location directly you might go straight through walls and other objects. You could overcome this by doing a capsule trace for objects in the direction you are moving. Another disadvantage is that your character is pretty much teleporting so it looks very jerky for large movement. Below is an example of what this would look like in code.
I hope this answers helps you out,
Hi! Thanks for the answer. I found out my way of doing this the day after I asked the question, (used timelines) but it was interesting with another solution!
No one answered my last question and I really need to fix that. Question: GIANT apk file! [Need Help ASAP] - Platform & Builds - Unreal Engine Forums
It would be cool if you took a look @Farshooter
hEY THE IMPULSE ELEMENT YOU MENTIONED CAN YOU TELL WHAT SHOULD I DO FOR CORNERS COZ IT JUST GOES STRAIGHT
hEY THE IMPULSE ELEMENT YOU MENTIONED CAN YOU TELL WHAT SHOULD I DO FOR CORNERS COZ IT JUST GOES STRAIGHT AND WHAT SHOULD I DO ABOUT THE AIR FIRCTION