Quantcast
Channel: Answers for "Using a while loops to repeatedly execute a method?"
Viewing all articles
Browse latest Browse all 6

Answer by TheRaven

$
0
0
If you want to have an object animate around you will need to do the position changes in the update function instead of the start function. So that the object moves the desired amount during an update call and is then rendered in the render call. Then moves more in the next update call and is then rendered in the next render call. What you have done is move the object before anything is up and running, by the time an update and render is called the object is at the final position.

Viewing all articles
Browse latest Browse all 6

Trending Articles



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