Tiny bit of Android help

Soldato
Joined
30 May 2007
Posts
4,889
Location
Glasgow, Scotland
Hi!

Having a slight issues, everything I encounter I can usually solve... apart from this so far!

I want my game to end when a sprite touches the boundary of the screen, I just cant seem to be able to make it work.

It is a in class called SurfaceViewGame with the sprites in their own class called Sprites. As you can see, it is a SurfacView game.

I'll keep working on it, but got no where so far!

Thanks
 
Soldato
OP
Joined
30 May 2007
Posts
4,889
Location
Glasgow, Scotland
http://www.kilobolt.com/day-8-collision-detection-and-sound-effects.html

Hard to know what other classes you have, but I assume the edge of the screen hasn't been set up as a collision spot properly or obviously it's hitting the boundary but not communicating it to the relevant object(s)?

That looks like a very good tutorial to run through, will certainly be doing that thanks :)

I can get my sprites to bounce off the screen... but I'm still struggling to game over! I'ts probably something silly, been at this for so long now! I should take a break.
 
Back
Top Bottom