Beta 4: Dynamically changing controls
A couple of questions:
1) Is there any way to dynamically chnnge whether I want to use the iphone joystick or the accelerometer?
Say I want to allow the user to choose one or another so that he/she keeps the type of control that likes the most.
2) Also, is there a way replicate the joystick functionality with code?
Say that I want to let the user move but without having to constaint it finger to the area of the displayed joystick but the whole screen.
Re: Beta 4: Dynamically changing controls
Use the multitouch object to replicate it through code.
I actually have a "swipe to move" type engine done, it's good for snake/pacman type games.
It just involves recording the last X and Y position of the touch, then check to see if the absolute value of Xlasttouch-Xtouch is greater than Ylasttouch-Ytouch and change the direction accordingly.
Re: Beta 4: Dynamically changing controls
Re: Beta 4: Dynamically changing controls
So, is 1) above possible or not?
Re: Beta 4: Dynamically changing controls
Not so far. I have to see if it is not to complex to implement. But it should be feasable.
Re: Beta 4: Dynamically changing controls
Ok :)
It would be nice to count on this feature; certain types of games let the player select the way to handle the character among 3 possibilities: accelerometers, the iphone joystick, and a "free" joystick (where the whole screen is your joystick).
Re: Beta 4: Dynamically changing controls
Please also consider to allow us to locate the iphone joystick in one of the 8 "borders" (TopLeft, MiddleLeft, BottomLeft, BottomMiddle, BottomRight, MiddleRight, TopRight, TopMiddle) and or to let us set the x,y coordinates (same for both buttons).