Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Acegikmo ; Forum: Java and child forums
Forum: Java Sep 14th, 2009
Replies: 1
Views: 244
Posted By Acegikmo
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
Posted By Acegikmo
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 10th, 2009
Replies: 3
Views: 419
Posted By Acegikmo
Forum: Java Aug 9th, 2009
Replies: 3
Views: 419
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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
Posted By Acegikmo
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 29th, 2009
Replies: 6
Views: 647
Posted By Acegikmo
Forum: Java Jun 28th, 2009
Replies: 6
Views: 647
Posted By Acegikmo
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
Posted By Acegikmo
Forum: Java Jun 27th, 2009
Replies: 8
Views: 581
Posted By Acegikmo
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
Posted By Acegikmo
Do you think you could show me where I would insert that code?
Forum: Java Jun 27th, 2009
Replies: 8
Views: 581
Posted By Acegikmo
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
Posted By Acegikmo
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.*;...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC