How do I make an enemy pace back & forth?
Hi. I would like to know how to make a simple blueprint of a Paper 2D enemy to walk back and forth. Just like a koopa turtle on mario. -Thanks!
asked Mar 31 '16 at 09:47 PM in Blueprint Scripting
I don't know much about Paper 2D but the logic for this should be quite simple. You would just have a variable for its position that it's being constantly updated. For example say that you have variable X for the horizontal position and you have another variable dx which is how fast you want it to move. Every tick you would add dx to X, but under certain condition, say reaching a certain point, you would turn dx negative which means that now your object should go in the opposite direction and once again when it reaches a certain point you would turn dx positive back again.
answered Mar 31 '16 at 11:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here