Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 847351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:46:09+00:00 2026-05-15T06:46:09+00:00

This question may have been asked before, but I’m starting to get into game

  • 0

This question may have been asked before, but I’m starting to get into game programming on the Android. I’m having a hard time figuring out the best way to move an object.

To put it simply, lets say I have a bitmap located on 0,0 and i want to move it across the screen. The obvious way to do it would be to simply increment the X position by one every time the Surface View onDraw method gets called.

But what if I wanted to make it move faster? I could increment it by two or three instead of one, but then the movement starts to get really choppy and stupid looking.

What is the best way to go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:46:10+00:00Added an answer on May 15, 2026 at 6:46 am

    Learn a bit about vectors.
    http://chortle.ccsu.edu/VectorLessons/vectorIndex.html

    Movement is usually calculated by adding a vector scaled by a time delta to the current position. (Math talk makes simple things so complicated).

    Basically:
    new_Pos = old_Pos + mov_Vec * time_delta

    So by changing the mov_Vec you can increase/decrease speed.

    You can also do it on x,y
    new_x = old_x + mov_x * time_delta

    Some sites to check out

    http://gpwiki.org/

    http://www.gamedev.net/

    http://www.devmaster.net/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may have been asked before, but I had trouble finding an answer,
First, this question may have been asked before, but I'm not sure what phrase
This question may have been asked before, but I couldn't find an answer to
This has / may have been asked before, but, as far as I remember,
This may have been already asked but I can't seem to find this specific
This may be a bit of a nooby question, I have been trying to
You may think this question is like this question asked on StackOverflow earlier. But
It looks like this question has been asked before, here and in other places
I realise this question has been asked 100 times, but i've looked through the
I'm new to ASP.NET MVC so this may be a stupid question. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.