Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Following a straight line on: 2004-08-21 23:40:14
Hey, works like a charm! Thanks for that.  Smiley
2  Game Development / Newbie & Debugging Questions / Following a straight line on: 2004-08-21 08:45:17
Hi all, I've been tinkering with this for a while and can't seem to find an answer. What I want is for the player character to move when the right mouse buttons is held down, and to move towards where the buttons is pressed. I've gotten a simple version done, but not one where the character goes directly to where the mouse was clicked.

The player has an x, y, dx, dy, goingX and goingY variables. at each frame im adding dx to x and dy to y. So it's all about getting dx and dy to the right values.

I hope that made sense. Anyone care to offer some help?
3  Game Development / Newbie & Debugging Questions / Re: Image Cropping on: 2004-06-22 12:15:04
Wow, you guys have been really helpful. I've got my own little guy moving around now!

So here's another question: can anyone point me to a good tutorial on making a scrolling tile-based map, if any exist? I've found a couple of games with source code but it all goes over my head.
4  Game Development / Newbie & Debugging Questions / Re: Image Cropping on: 2004-06-22 09:18:38
This works pretty well. Thanks a lot, just one quick question, is this the best way to read in an Image in a JFrame:

1  
tempImage = getToolkit().getImage("Hero.gif");


Or is there a faster way?
5  Game Development / Newbie & Debugging Questions / Image Cropping on: 2004-06-22 01:28:55
Hi all, my first post here!

I'm trying to put all my character animations in one GIF file, read it in then chop it up and put each piece into an array. I got it working fine in a JApplet, using CropImageFilter ect, but I want it to happen in a JFrame.

The problem is you can't use getDocumentBase() in a JFrame, so reading in is a bit different. My question is, do I have to use ImageIcon, and if so, how do I chop an ImageIcon up?

Please be patient, I'm still new to graphics in Java.  Smiley
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (12 views)
2014-08-28 18:26:30

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (37 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (29 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!