which android toolkit functions/classes would I need to use to implement a slingshot mechanism in an android game? [closed]

StackOverflow https://stackoverflow.com/questions/16513435

Question

which android toolkit functions/classes would I need to use to implement a slingshot like character control mechanism? (for android game) I want a character that can fly around by repeatedly being slingshotted like on angry birds (only repeatedly). Any help is greatly appreciated.

also, I would like to implement it into the framework presented in here if possible, since i followed the tutorial succesfully and completed it.

can someone at least point me in the right direction for what to research?

alright everyone I'm sorry I asked this question, I did more research and am now watching some AndEngine tutorials so I can try to figure out how to make a slingshot mechanism myself using that framework. Would anyone mind canceling the minus' so I can post correct specific questions again?

Was it helpful?

Solution

That would require a lot of mathematics. Also, a lot of drawing.

For the Android part, you can start with a View and implement the onTouchEvent. http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent)

Although, I am sure there is a more effective way of creating a game for Android. Possibly using some type of rapid development kit to reduce the amount of background code you'd have to write. For example, write your application in Flash or AdobeAir and deploy it that way.

I think you were down voted because a lot of your questioning can be answered by doing your own research. There is no error here, you are basically asking for code.

Here some stuff you can search for:

  • Slingshot physics
  • Collision detection
  • Android View drawing
  • Android OpenGL ES
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top