Tagged Questions
0
votes
0answers
42 views
Android: Switch(swipe) places on two images [closed]
I have two images next to each other and I want to switch their places with a swipe. I made collision detection but I don't now how to swipe and change their positions.
I'm really new at this, so ...
2
votes
2answers
231 views
Detecting collision between ball (circle) and brick(rectangle)?
Ok so this is for a small uni project. My lecturer provided me with a framework for a simple brickbreaker game. I am currently trying to overcome to problem of detecting a collision between the two ...
1
vote
1answer
206 views
How to detect screen boundary using AndEngine GLES1?
I am using the AnalogOnScreenControl to move my sprite around the screen. I would like to restrict the sprite so it can not move outside the screen boundaries.
I have tried putting a line at the ...
1
vote
2answers
181 views
Randomly spawning bitmaps on cnvas
I need some ideas in order to finish algorithm. I'm randomly placing objects (bitmaps) on canvas without overlapping. Time needed to finish it is my problem. When I need to spawn for example 80% of ...
0
votes
2answers
472 views
Collision between sprites in game programming?
I've since just started coding for an android game using eclipse. I've read Beginning Android Game Programming and various other e-books. Recently, I've encountered a problem with collision between ...
3
votes
2answers
139 views
Adding delay between damage
I have a bunch of enemies chasing my main-character, and if they intersect I want them to damage him and that's all good. The problem is that right now they damage him as long as they stand around ...
3
votes
2answers
448 views
how to solve ArrayList outOfBoundsExeption?
Im getting:
09-02 17:15:39.140: E/AndroidRuntime(533): java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
09-02 17:15:39.140: E/AndroidRuntime(533): at ...
0
votes
0answers
202 views
Java Collision Detection of a Slope using a Gradient [closed]
Im testing out collision detection for a game, The ball is traveling and i need to know when the ball hits a sloped line.
For this example i have used the whole screen, with a sloped line going from ...
-1
votes
1answer
126 views
Circle collision with a specific tile on a grid
Does anyone know of a good tutorial that will show collision detection on a 2d game platform without using any engines?
0
votes
1answer
620 views
Android Touch Event Collision Detection [closed]
I'm relatively new to both Java and Android, so hopefully the problem I'm having is stemming from something pretty minor that I've overlooked.
I've got a (very early stage) game that I've started ...
2
votes
2answers
299 views
How create a respawn area in a tiled map
I'm creating a RPG game, I need to create a monster respawn area like the Pokemon games where if I walk through the long grass areas a Pokemon can appear. I already created the battle scene, I've seen ...
0
votes
2answers
1k views
Pixel perfect collision detection between sprite and animated sprite
I am trying to make a collision between a sprite and an animated sprite. The animated sprite is the main character of the game. The problem I am facing is that when another sprite collides with the ...
0
votes
2answers
245 views
How can I improve this collision detection logic?
I’m trying to make an android game and I’m having a bit of trouble getting the collision detection to work. It works sometimes but my conditions aren’t specific enough and my program gets it wrong. ...
-4
votes
2answers
243 views
How to detect collisions between bullet and alien
I am designing a game for Android using Surface View. When a bullet hits any point on an alien it should blow the alien up. I wrote some code to detect collisions, but my code only triggers when my ...
1
vote
2answers
2k views
Sprite collisions in android andengine
I'm developing a simple game by andengine. I have 10 balls which are moving randomly on screen.i'm importing the balls as picture in sprites.if they move at the same coordinate , they pass though ...