Tagged Questions
-2
votes
1answer
88 views
Move projectile in direction the gun is facing [closed]
Possible Duplicate:
Move sprite in the direction it is facing?
I am attempting to have a projectile follow the direction a gun is facing. When using the following code I am unable to make ...
-3
votes
1answer
65 views
Why does my text is shown below an image? [closed]
My text is below an Image but my other text is above the image. I can't find out why. It just have an if statement.
if(renderText==false)
{
g.drawString("heelo", 300, 600);
}
Even ...
0
votes
3answers
276 views
How do you make bullets move at an angle in different angles using delta
I'm having trouble making my bullets move at a steady pace using delta. I have the formula I used outside of slick2d, but it doesn't take delta into account. My bullets fly fast. How do I make them go ...
0
votes
0answers
290 views
Fastest way to render 2D shapes on Android OS phones
I'm building a game for Android using Adobe Flash/AIR. The problem is that my game consists of a lot of 2D vector graphics that change every frame, and so cannot be cached as bitmaps. As a result, ...
0
votes
1answer
173 views
Can't remove JPanel from JFrame while adding new class into it
Basically, I have my Frame class, which instantiates all the properties for the JFrame, and draws a JLabel with an image (my title screen). Then I made a separate JPanel with a start button on it, and ...
1
vote
3answers
313 views
Question about JPanel “transition” for Java Swing
I want to make like a sort of main menu (in GUI).
When the user clicks the start button, the screen transition into another "screen" (JPanel). This image will make it easier to understand.
...
4
votes
2answers
168 views
Minesweeper: Mouse listener problem
I have wrote a code for game Minesweeper and there is no problem with the graphics,but there is some problems with MouseListener. Here is my code
/*
* To change this template, choose Tools | ...
1
vote
2answers
668 views
Provide A Scrolling “Camera” View Over A 2D Game Map
I'm in the process of attempting to create a 2D MMO type game with Kryonet and some basic sprites, mostly for my own learning. I have the back end set up great (By my standards) and I'm moving on to ...
1
vote
1answer
279 views
Custom Progress Bar
I have an image that has just letters on it with a transparent background. I was thinking that as my game is loading that these letters could "fill up" with a certain color. So they would start out ...
1
vote
1answer
794 views
Using NinePatch in libGDX for Loading Bar
I am trying to create images for a loading bar in libGDX. I came across the NinePatch class and I was hoping to use it for this loading bar, since stretching images with a plain Texture or Sprite ...
1
vote
1answer
340 views
Polygon Collision Detection Android
I am starting to try and figure out polygon collision detection in my Android game. I am currently doing pixel level collision detection and it just seems to be too slow (though it works). I was ...
1
vote
4answers
602 views
Which Side Was Hit?
I am working on an Android game and I have two objects A and B (both rectangles) and when they collide I simply want to know which side of B was hit. I have detected the collision fine, but I am ...
5
votes
2answers
1k views
How to handle pixel-perfect collision detection with rotation?
Does anyone have any ideas how to go about achieving rotational pixel-perfect collision detection with Bitmaps in Android? Or in general for that matter? I have pixel arrays currently but I don't know ...
0
votes
1answer
365 views
How can I “capture” the section of my sprite sheet that I want to draw in Java?
I'm working on a puzzle game, I've implemented a sprite class that uses an array of images and cycle through the array to draw each frame as required.
This works fine!
Here's the original code:
...
2
votes
1answer
136 views
Can I use one set of images to represent multiple sprites in Java?
I've got a game that has 3 basic sprites, at the moment I'm loading 8 images into each sprite for animating.
Each character class has a sprite object.
if I've got 10 characters on screen at once ...