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 8821071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:45:48+00:00 2026-06-14T05:45:48+00:00

We are currently developing a RPG with Android using a Renderer and Canvas. Our

  • 0

We are currently developing a RPG with Android using a Renderer and Canvas.

Our “Main” method is a Surfaceview where we call different stuff like the Map, Monsters and at least the Character. All of them are Drawable and have a thread where they can change their pixel Position if they need to move to the next Block at the MapArray. This means our Map is devided in Squares and if they move they got a thread with a sleep which changes its Pixel Position. If the render draws them, it get draw at the pixel position not at the MapArray position. (The render is in ouar surfaceview the renderloop got its own class)
The render draws first the Map (background scaled to the Viewsize), char + skill if used, monsters and at least the Interface.

At the Moment the surfaceview doesn’t have a XML layout and i am bit confused if we need it one? At the moment it’s the surface is called from the Mainactivity by a Startbutton

The next question is, how to i realize the touchevents. Do i really need to get the event in the surfaceview check if its at the right square and call the function by squere?
or is there a way to draw a the joypad (Bitmap maybe lateron a Sprite) and make it touchable or something like that?
Does it automatically support multitouch? (Moving and using a skill at the same time)

Is there something we just did really wrong in the basic idear and implementation? (if you need some Code let me know)

Best Regards
Ben

  • 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-06-14T05:45:49+00:00Added an answer on June 14, 2026 at 5:45 am
    1. I don’t see the point of having an XML layout if you only have one single SurfaceView on screen and if your game rendering is done in it.
    2. For the touch events I don’t see any other option than handling touch events of the SurfaceView (by overriding onTouchEvent() method) and check the coordinates to decide what to do with it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing an RPG game using C++ and I got to the point
I'm currently developing an RPG game using C++ and SFML on Windows. Currently it
Currently developing an application using the newest version of symfony, obtained through PEAR. This
Im currently developing an In-House Enterprise application. I will publish the app using Apple
I'm currently developing a web application based on jQuery Mobile. I would like to
I'm currently developing a website. Every feature works fine. However, I'm using a lot
Currently developing a connector DLL to HP's Quality Center. I'm using their (insert expelative)
Im currently developing a Silverlight application that connects to an old webservice. Our old
Im currently developing a program that uses a scrollable/zoomable image as the main user
I'm currently developing a Zend Framework project, using Doctrine as ORM. I ran into

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.