Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 72601

Re: i have a character that is 64x64 pixels that i want to move along the x,y axis by clicking on a spot with the mouse. the character should move in increments of 64 pixels.

$
0
0

What is failing to happen with the code you show?  I would expect that the object will never reach its destination due to not accounting for distances less than the WalkSpeed value, which you say is 64.  Where do you set that value?  How is this code implemented in what you are calling the game loop?


Viewing all articles
Browse latest Browse all 72601

Trending Articles



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