0
votes
0answers
151 views

Make bitmap moviment on android canvas using timer or handler/Runnable/postDelayed

Im trying to to move enemies on a android canvas, i have to update its x and y position every x time (run enemy.move() every x time). I got 2 problems: Currently im implementing my canvas redraw ...
0
votes
1answer
526 views

How can I delete an enemy's bitmap from a canvas?

I'm learning to create an Android shooter game where I'll have multiple enemies. I must control the position on the screen and be able to delete each of then (via, for example, a die() function). ...
1
vote
2answers
343 views

Make a 2D character stop moving and going back when encounter an obstacle

I am using a 2d character who is sliding infinite ( huge incrementation of the X or Y value ) when moving. He can only move up, down, left, right inside a virtual grid, made of multiple squares. Now ...
1
vote
3answers
549 views

Moving a 2D character on a straight line

I am trying to create an Android Game and I am facing my first big problem. After reading blogs, tutos ... I am able to easily move a character with a drag and drop, make it move move to a touched ...
0
votes
2answers
87 views

Crash when trying to detect touch [closed]

I've got a character in a 2D game using surfaceView that I want to be able to move using a button (eventually a joystick), but my game crashes as soon as I try to move my sprite. This is my ...