1203 byte By
rageicea at 2007-10-2 14:37:07
Hello, first of all, sorry for my English that is probably (very) bad.This is my problem, I'm trying to move components in an applet with the mouse. I have no problem for move components using the setLocation method in a "null" Layout, but not with the mouse.The problem is that, to dragg the ...
so i'm writing a GUI with an Action Listener, and i have the actionPreformed in it, but it seems to just be skipping over the entire method, and I have no idea why? if you have any ideas, please share!!! thanks!
Hi!I am trying to make a simple game, using the Grahpics object and the drawLine method. I want to make a line, starting at the bottom, center of the window, and going to where the mosuse clicks (the pointer is a cross hair). It's easy to just draw a line, but I want this "ray" to grow ...
1451 byte By
asciia at 2007-10-2 14:57:54
Can anyone provide some guidance or perhaps a working solution to this problem as I need this very urgently:Implement an animation program based on Java 2D which simulates the navigation of a tiled maze by a robot.The maze should be splitted into N x N cells (for example 100 x 100 tiles).The ...
1264 byte By
Jamisona at 2007-10-2 15:07:53
Okay, I only wanted to post this as a last resort... but I can't figure anything else out.I'm trying to create a Multiplayer RTS (Real Time Strategy) game, at the moment it's just Pong. Yes, it's my first ever multiplayer game, however, it's not anywhere near my first game. Anyway, I'm ...
177 byte By
Melosa at 2007-10-2 15:08:30
I was wondering if anyone has any example code on how to add a chat box in a 2D game. I was looking on Google and couldn't find any outside of Applets and HTML/PhP code.
56422 byte By
CutRocka at 2007-10-2 15:14:45
Hello everyone. I'm currently making my first Java game, kinda like tetris.I recently switched my code from an applet to using frames and can't figure out a way to attach my keyListener to the frame or canvas for listening.I can only figure out ways to call it from inside static methods, and ...
I just downloaded java Studio. I would like to create Java games. Not sure where to start.. Do i need more programs? Any info would be of great help thanks....
374 byte By
weadoga at 2007-10-2 15:30:53
hi i'm tryin to make a basic game who wants to be a millionaire...i got the following..layout of the textfield textarea etc.. but i cant seem to use the vectors to store the questions from a txt file then transfer it over to the textarea box or radio buttons.... n how about the checking part? ...
9900 byte By
ptom98a at 2007-10-2 15:38:03
Last night i started work on a tile loader/map creator piece of code its no where near finished at the mo, but im having a small problem with it it doesnt seem to like this piece of the codemap = createImage(sizeX*32, sizeY*32);mapGraphics = map.getGraphics();any ideas why? it compiles ok, but ...
269 byte By
emwiza at 2007-10-2 15:55:02
what i am talking about is i want to make a agme for my website.i want it to be a mulity user game where charators can interact with another. So dose anyone have any videos i can whats like a tortorial to make one or any info.Thank you for ur help.
I have written a code using JOGL which is executing properly, now I want to add a button to provide an additional functionality.I want to know how to add button using JOGL. Is it the same way as you add button using AWT. But I get error messages if add like that.I imported the AWT component and ...
I had the following error when I try to compile a java program that have a System.nanoTime method:TimerRes.java:96: cannot resolve symbolsymbol : method nanoTime ()location: class java.lang.Systemcount1 = System.nanoTime();I checked for the JRE and JDK installation and it seems to be ...
Will my code run faster if it draws a simple circular .jpg or .gif many times over on the screen, or if it uses Ellipse2D.Float many times over to achieve the same goal?Dave
Is there a class that will let me read a PNG image and have access to the coordinates of each individual image object that is contained within the PNG file. Say I have a PNG file with three different image objects laid out at (0, 10); (5, 20); and (10, 30) coordinates. Is there a class that ...
Okay... I'm not quite sure how to explain this... basically, I'm looking for a class or at least some kind of methodology for creating little boxes inside a game window. The purpose I have in mind is similar to the way such boxes were used in, say, a Final Fantasy game (or nearly any other ...
Ok, hi. I'm new here and I would like some help on things I don't know how to do with java. I'm creating a java RPG game, respectfully named RPG, and I need some help on these things:1.) A random number generator. This is needed to apply "level up" stats for attack and defence scores. I have ...
Ihave posted my game here as u can see. May i know how am i going to add a song to my game? is it just a single line of code? cause i was told by a friend that including a song into my game is easy, but to no avail. Do i need to create an applet to include that song? wat if this does not ...
1423 byte By
keksa at 2007-10-2 16:53:20
Hello,I have a problem writting my player for tha game Checkers (i guess all of you know this game). So - I'm talking about the International version of the game 10x10. I have the board (it is in german, but it is not so important). My task is to write a player for it. Everything is in Java 2. ...
303 byte By
shearera at 2007-10-2 16:57:39
We are an established company (UK) looking for open discussions with freelance J2ME programmers with a view to taking our 'old media' games and porting them to the mobile phone platform. Anyone interested please get in touch with experience and portfolio.Many ...
I was wondering if anyone out there that is a good programmer, help me.....i am a begginer to Java, and i was wondering if any of u guyz know java enough to help me make a "Who wants to be a Millionaire" game?i have no clue how to make it......what i want to do is make it were u can change the ...
601 byte By
SFLa at 2007-10-2 16:59:06
Hi,I am a newbie at this topic, I hope you can help me :)I have a JPanel with a certain size. There are 2 objects (start- and goal-point) , simply painted with drawOval. There is a 3rd object which represents a certain barrier (drawOval again).I now just would like to check if there is a ...
440 byte By
Climaxa at 2007-10-2 17:00:22
HI guys.I recently started programming a FPS shooter using JOGL. I've already managed to hide the mouse cursor (otherwise aiming will move the cursor all over the screen). Now in order to register the amount moved by the mouse (must also be able to exceed the desktop),I need a constant ...
104 byte By
tiloma at 2007-10-2 17:13:13
hello everyone. i am new to j2me. does anyone has codes for connect4 game in j2me? thx in advance
Hello my friends...This my first post (Sorry, my english vocabulary is little, I'm from Brazil)!Let's go problem...i'm building a mobile game style Sonyc (Sega), i implement all collision with simple tiles, actors and agents of my game...But i have problem with test collision with sloped ...
Hi!My first person mouse view is functional and working but its very slow. The reason why its slow is that im using the Robot class to center the mouse pointer in each frame after I have processed the info from the MouseMotionListerner.The Robot-class has a mouseMove method that allows you to ...
280 byte By
cjrena at 2007-10-2 17:25:00
Hi guys here!I'm making a tank battle game with java2D. I need the tank can move forward or backward, that is not difficilt, but I need it can rotate an angle, which is hard for me. I don't know how i can do it , can anyone here give me some adivice?! Thank you !!
1198 byte By
csc165a at 2007-10-2 17:35:32
Hey all,I created four different backgrounds for a project I am creating. (The background are a top down view of a road with sidewalks). I have them named as road1, road2, road3, and road4.I have two questions. My first and most important is if I have a little box I want to move around the ...
Hi,I'm working on a multiplayer game in Java 1.4. This is more like a prototype than a commercial quality game, and since the focus of my work is on the networking capabilities of the game, I want to spend the least possible time with mundane things like how to type information and select ...
214 byte By
melkiora at 2007-10-2 17:48:18
I have been looking (and without any luck so far) of examples of java games that use 2d arrays.Does anyone know where or can get source code for java games so that I can see how it all works together.
please send me a j2me game with code its really urgent.
Hi guys,I'm just an average chess player who discovered yahoo chess a few months ago. i love playing but have found out that many of the players cheat. i'm not a programer nor am i looking for lessons in java but i just want some straightforward answers on how i can prevent people from ...
92 byte By
marizaa at 2007-10-2 17:56:20
I need to develop a format to develop a baseball game and I have no clue how to do it
1312 byte By
Phibreda at 2007-10-2 18:02:40
Hey, I'm working on an RPG right now and I was wondering if anyone knows how to basically save the state of the screen into an image.I want to do proper fading from black back into the screens previous state but I have been having issues finding any way to do this.I am using a typical JFrame ...
3107 byte By
jacqa at 2007-10-2 18:04:27
When running a Java/Swing application on Linux, using X, I'm experiencing poor performance. This is partly caused by X. I'm therefore wondering if there is a possibility to directly use the video memory.With java NIO you can map a file into a buffer and write directly to this buffer. You can ...
I'm a newbie in JAVA game programming.I would like to create a chess game for fun. I have a fairly good idea on how I want it to be, but I'm having some difficulty on the game board.I am not sure which set of JAVA API I should be using to design my board. I guess that the board will sits in ...
I consider myself a beginner in programming so I need a little help if that is possible卋elow is the code of my program ?i have designed 100 buttons by using 2D array method?But the problem that I抦 having is I can抰 figure out how to change the colour of any of the buttons when I click it import ...
1114 byte By
cjrena at 2007-10-2 18:18:44
First, I must say that i'm newbie in java game. and i have a puzzle , i want to hear your opinions.(1)The way I saw in java2d examples when draw shapes is always:class MyClass extends JPanel { // as a canvas...public void paintComponent(Graphics g) { // draw the shapes}}(2)When it comes to ...
Hi everyone,I'm making a 2D overhead view tank game (lots of those around, hey?). The problem I have is with collision detection using bounding boxes. I use the AffineTransform that I rotate the sprite image with to rotate that sprite's bounding box. The problem is that the bounding box ...
125 byte By
knyaza at 2007-10-2 18:21:06
Please,if somebody have Thread Example please send it for this e-mail :reke.essential@gmail.com!!!!!!!!!!!!!!!!
New online game rpg.The plan is to use a web startable 3d java front end connected to a sql back end (oracle 10g). Need 3d design tools. Also need to know what API's to use in the middle.
I have this project to make a pacman game and they want us to load a map from a txt file. The question is how do i do that on a frame.Furthermore , I was thinking instead of going that way to create a single map (coloured and graphic) but I am having problems. Can anyone post a link to ...
Im trying to add actionlisteners to my gui but i keep coming up with an error message, im new to java and this is driving me nuts at the min!Any help please?Sudoku.java:7: Sudoku is not abstract and does not override abstract method actionPerformeda.awt.event.ActionEvent) in ...
144 byte By
Auxisa at 2007-10-2 18:39:35
Can anyone explain how java online multiplayer games like Yahoo chess work ? I wonder if they use sockets to communicate or someting else
534 byte By
ferkaa at 2007-10-2 18:40:13
Hey everybody, I'm writing a game for a final project and it is supposed to be a four player "Pong" I have my keyboard listener working just fine, the problem is that it just accept the input from one key, as soon as another key is pressed the first key stop working I know everybody says this, ...
2003 byte By
fryeta at 2007-10-2 18:53:02
I want to design an application that has dozens of pages. I could try and use CardLayout to accomplish this (although for the life of me I couldn't get CardLayout to work when I tried it on another application), however I would prefer not to have all of my pages in memory. Instead, I would ...
hi..i almost finished writing my Pong game and one of the things left is the score..theoritically i know that the numbers will increase each time the ball goes off the screen (either from the left or from the right side). and i also heard that i need to use the drawString..i would appreciate it ...
Hi,I have problem in opening an HTML file from MS Word.I have a HTML file and some related images(PNG files) placed on the server. From my UI, i show a link to access the file. When clicked on the link, to the end user, it opens as an attachment so that he can either open or save the document ...
Hi everyone!I'm using Canvas and i have problem with the flickering effect. I'm not sure if my problem is flickering because i'm brazilian and i don't know the exact meaning of 'flicker' but i think it's this. Well, i have read the other topics about the flickering and i think my code is ...
729 byte By
SWAT296a at 2007-10-2 19:20:12
hey guys i am in computer science A AP that i am taking at my local high school. We have a project were we have to create some kind of game as a group. What we decided to do is make a paintball game where we have drawn bunkers and have two guys that we can move with different keys fireing at ...