This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "move sprite around screen" Watch "move sprite around screen" New topic
Author

move sprite around screen

wayne ferguson
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41598
    
  55
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.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: move sprite around screen