2014년 12월 11일 목요일

How increase speed on image sprite?

Hi all, I am creating a game that will have a sprite image that will move around the screen. by tilting the phone. 

the question is how can I do to speed the sprite image will increase according to the inclination of the phone. 

here my block




OrientationSensor handles the measurements only when the device isstationary.  You most likely want to use the methods provided by theAccelerometerSensor component, which measures acceleration.



I mean wing velocity that will move the image sprite not calculate the speed at which the devices will move. 

what I want is for example if the phone is flipped to the right, the more you turn the more accelerated movement speed the sprite image, just to the left and down and Up.


댓글 없음:

댓글 쓰기