Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am trying to clone this game:

http://www.ferryhalim.com/orisinal/g3/bells.htm

As i am using libgdx, so the game is both for Android and PC. I was wondering which input event would fit in nicely. SA you can see, bunny moves in accordance with the position of cursor. There is no cursor in android so i will have to do something different. Any help would be appreciated. Thanks in advance.

share|improve this question

closed as primarily opinion-based by Byte56 Nov 10 at 16:11

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 3 down vote accepted

This game is a good example why you can't always automatically port a game from one platform to another. Having the player-character follow the mouse cursor works well when the user has a mouse, but most Android devices have no mouse, so a different input method needs to be used. In this game, the gameplay is tightly connected to the input method. This means the gameplay will change during the transition from one platform to another.

The most straight-forward input choice would be the touchscreen. Just have the character follow the touch-events, so the user can move their finger on the screen and the character follows. The drawback of this method is that the players finger will cover a part of the screen. In the example game you posted the player only controls horizontal movement. This is good, because it means the player could move their finger along the lower edge of the screen to avoid covering the game action. When they would also control vertical movement, their own finger would certainly get in their way.

A more adventurous method would be to use the gyroscope sensors and have the player control the game by tilting their device. I once played a very similar game on Android which was controlled that way, and it played better than you would expect. However, this input method is less precise than finger or even mouse input, so you might want to make your game easier to combensate.

share|improve this answer
    
i just found out this: itunes.apple.com/us/app/winterbells/id404410628?mt=8 Developer ported it to iPhone, i think i should see how it works on iphone. EDIT: You have to keep a position touched to move it. But thanks anyway –  Zohaib Amir Aug 11 at 13:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.