Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Make enemy move up and down by itself in 2D space?

$
0
0
Well the question says it all pretty much. So if you have played the Mario games, there is a turtle that flies up and down making it difficult for Mario to get through. Well that is what I am trying to accomplish, for the enemy to move up and down. As of right now, I have a way-point script that accomplishes this but I don't want to make several game objects for the enemies to follow. If I could set the position that the enemy would move to in the inspector that would be great. An example being, set the distance that the enemy has to move is 3 units up and then 3 units down, and it repeats. Thanks!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>