Has anyone figured out great tilt control for GS?
goliath
Member Posts: 1,440
Hello all, in case you missed it, my game SpaceScape has been released and the #1 complaint (even though I really don't have any issues with it at all) has been the controls.
You fly your ship with the touch of a finger but people keep saying the ship gets lost under their finger, even though I added an offset.
I have been toying around with the idea of adding strictly touch control but it needs to be perfect. If anyone out there has added tilt control to their title and are happy with it, please let me know what's the best way to do it so I can add it to spacescape. Any help would be much appreciated. thanks!!!
You fly your ship with the touch of a finger but people keep saying the ship gets lost under their finger, even though I added an offset.
I have been toying around with the idea of adding strictly touch control but it needs to be perfect. If anyone out there has added tilt control to their title and are happy with it, please let me know what's the best way to do it so I can add it to spacescape. Any help would be much appreciated. thanks!!!
Comments
If i'm not mistaken, I use this and I am pretty happy with it. I tried other ways, like constraining the max speed to abs(accellerometer*number) and then adding an accellerate behaviour based on the accellerometer direction, and it worked well too, but I prefer the first one.
constrain self.positionX to self.positionX + (game.accelerometerY*10) {it is switched for landscape. If you have it the landscape the "other way" you may need to try - instead of + and if it is portrait then use x for x and y for y}
constrain self.positionY to self.positionY + (game.accelerometerX*10)
and then constrain the Y or X self position to this self attribute? No double actor, should be less performance killer.
Working on a quick demo of tilt control now.
I added a calibrate button so you don't have to hold the device flat if you don't want to. works from about 0 to 60 degrees.
enjoy!
P.S. remember that physics will not work with the actor you are controlling with this methods (i.e. bouncing off other actors)
Sorry.... I guess I am just having a bad day....
Any ideas?
Are you holding the device horizontal with the button to the right?
I appreciate your help...
I plan on trying it on my iphone tonight but we will see.