문제

i am new to AndEngine,

Can i use standart analogController and allow only horizontal or vertical moving of it ?

I undestand that i can use this controller to draw my own only with X\Y coordinate, but i am interesting if there is standart functionality to make such horizontal\vertical controller ? (not only ignore one of the axis but restrict moving on it)

Thx for answer.

도움이 되었습니까?

해결책

The answer was to make HorizontalAnalogScreenController from BaseController and AnalogController: super.onUpdateControlKnob(pRelativeX, 0);

다른 팁

Use DigitalOnScreenControl instead of an AnalogOnScreenControl.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top