Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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:

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]
IanParcs (38 views)
2016-04-18 14:18:53

KaiHH (38 views)
2016-04-18 08:35:41

KaiHH (69 views)
2016-04-15 12:43:58

theagentd (71 views)
2016-04-14 02:16:17

theagentd (80 views)
2016-04-14 02:15:43

IanParcs (96 views)
2016-04-12 03:51:16

IanParcs (39 views)
2016-04-12 03:50:03

IanParcs (35 views)
2016-04-12 03:49:54

IanParcs (32 views)
2016-04-12 03:49:52

IanParcs (40 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 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‑
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!