Set up the motion of an image
I am just starting to use unreal engine which is very convenient.
Only I block on one point. The goal of my game is to catch food that falls in columns (basic but I train). But I can not put in place the movement of the image that has to catch food. I would like the image to move between columns with directional arrows from left to right.
Can not find the solution on the internet so I call you.
Thank you for help!
asked May 21 '18 at 09:44 AM in Blueprint Scripting
Question: Are the fruit images spawned in the game world, or are they displayed on the viewport/HUD as UMG widgets? If they are pure UMG, then you will have to approach the game differently than any Unreal tutorial I know of will tell you to do.
If you are spawning them in the game world or they are placed in the Level, then yes you will need a Pawn to control the image that is representing the player.
If you want smooth movement so the player can be positioned between columns, then Nebula Games' approach should work for you.
If you want the pawn to snap onto the columns instantly, not allowing a position that is not perfectly lined up with a column, then you will want to Set Actor Location instead of Add Movement Input.
answered May 21 '18 at 06:05 PM
Thanks for the comments that very help me! It's works now.
answered May 22 '18 at 06:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here