Forum: Java Sep 14th, 2009 |
| Replies: 1 Views: 244 I'm trying to make a class called "Sprite", which is supposed to handle spritecards and such. However, I can't seem to be able to get the image height without having an image observer object.
Do I... |
Forum: Java Sep 5th, 2009 |
| Replies: 0 Views: 226 I'm using the drawImage(); method in Graphics2D to draw my png images. However, I'd like to be able to render them with screen blending. If it's possible, I'd really like to know how you do it, and... |
Forum: Java Aug 9th, 2009 |
| Replies: 3 Views: 419 Anyone?
I'm really stuck right now and won't get far if I don't solve this issue. :( |
Forum: Java Aug 9th, 2009 |
| Replies: 3 Views: 419 I have a Player class, a Weapon class and a Projectile class in my applet game.
The weapon class uses Projectile objects when fired.
For example, everytime I click I want this code to execute:... |
Forum: Java Aug 8th, 2009 |
| Replies: 1 Views: 375 For example:
package topdowngame;
public class SpeedDir {
double speed;
private double direction;
static final SpeedDir INTERNAL = new SpeedDir(1,45);
// Other stuff |
Forum: Java Aug 2nd, 2009 |
| Replies: 3 Views: 373 I am currently writing a weapon class and a projectile class, to use in a top-down game.
However, I can't seem to be able to load images in a class. It works in the main function, where I do it like... |
Forum: Java Jul 4th, 2009 |
| Replies: 14 Views: 673 I don't know if you should mark it as solved yet; I haven't fully tried this out yet as I've been very busy lately. |
Forum: Java Jul 3rd, 2009 |
| Replies: 14 Views: 673 Okay, it seems like NetBeans had removed the images.
Anyway, I remade them and rewrote the angle system.
Now the lines also show their normal:
... |
Forum: Java Jul 3rd, 2009 |
| Replies: 14 Views: 673 Thanks!
I have another question.
I am using netBeans. I've always run the file by clicking "Run file" when the Main class is selected. But now I accidentally clicked "Test Project". The applet... |
Forum: Java Jul 3rd, 2009 |
| Replies: 14 Views: 673 Okay, I have a few questions.
What exactly is xDirection and yDirection?
Is this the kind of angle values I need for the slope angles?
http://files.getdropbox.com/u/99714/Line%20angles.jpg |
Forum: Java Jun 30th, 2009 |
| Replies: 14 Views: 673 Thanks alot for all the help!
I'll be sure to try this out when I have time.
I'll let you know how it went and if I run into any more trouble. |
Forum: Java Jun 30th, 2009 |
| Replies: 14 Views: 673 The character I currently have is just a small circle. Right now I don't really want to get the animations of the character itself to look good, I want it to work gameplay-wise.
This is what I have... |
Forum: Java Jun 30th, 2009 |
| Replies: 14 Views: 673 Thanks!
My main issue is moving up and down slopes. I really can't get it right.
The realism I want is pretty much only falling and sliding. The rest will probably be modified to better suit the... |
Forum: Java Jun 29th, 2009 |
| Replies: 14 Views: 673 I'm making a Java applet that's a 2D platform game.
Each map contains (So far) only collision lines, a background and a foreground image. The collision lines are used for collision detection with... |
Forum: Java Jun 28th, 2009 |
| Replies: 6 Views: 647 After I've been running my program for a while, it freezes and gives me this error in the console:
Exception in thread "Thread-4" java.lang.IllegalArgumentException: timeout value is negative
... |
Forum: Java Jun 27th, 2009 |
| Replies: 8 Views: 581 Okay, I will!
Thanks again for the help. |
Forum: Java Jun 27th, 2009 |
| Replies: 8 Views: 581 Thanks!
It isn't actually a homework assignment, it's a personal project :)
Anyway, I believe I got this working, thanks!
I have a few other things I could use some help with though, and it'd be... |
Forum: Java Jun 27th, 2009 |
| Replies: 8 Views: 581 Do you think you could show me where I would insert that code? |
Forum: Java Jun 27th, 2009 |
| Replies: 8 Views: 581 But that can't possibly be the most effective one, can it?
It doesn't keep itself on a regular time pattern, it's relative to the amount of time the loading and rendering took. |
Forum: Java Jun 27th, 2009 |
| Replies: 8 Views: 581 I don't get where to insert the code and such; I could really use some help with this. :)
Here's my java file: (I removed irrelevant stuff)
package projectprojectile;
import java.applet.*;... |