This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes move sprite around screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Mobile » Android
Bookmark "move sprite around screen" Watch "move sprite around screen" New topic

move sprite around screen

wayne ferguson

Joined: Feb 22, 2013
Posts: 4
I am currently trying to learn java so I can develop some apps and games for mobile device. I am currenty working on my first project and have created a basic image sprite. what I want to do now it add some functionality to be able to move the ship (sprite) around the screen preferably using a dpad touch emulation. I want the image to rotate in the direction its heading just like a ship would. Can anyone point me and give me some examples to achieve what I need it to do.

my project so far can be downloaded from Ship Shapes Beta
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42955
I doubt that anyone will download a zip file from some site of unknown provenance, and then try to figure out what all the involved pieces are.

Why don't you describe here what specific problem you're facing, along with some selected code excerpts that demonstrate what you have so far?

Since you mention a touch screen, have you been able to detect and track touch gestures in your code? If not, that's where you could start, irrespective of what the gestures should ultimately accomplish.
Consider Paul's rocket mass heater.
subject: move sprite around screen