An MMORPG game

Hi everybody!!!!!!!I am doing an MMORPG and I need some help:The game has real time combat, so i need someone to teach me, how to make a simple fighting game. You know: punch, kick, and button combination.Please help me ^_^
[251 byte] By [Dydraa] at [2007-11-27 2:46:48]
# 1
You might want to learn java.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 2

for button combination, try using a keyDown method. it is deprecated, but here is what it looks like. btw, the undeprecated version is keyPressed

public boolean keyDown(Event e, int key) {

if (key == 32)

{

if (key == 112)

{

doWhateverYouWantWhenTheseAreButtonsPressed

}

}

}

as for the kicking and stuff, when u draw stuff ur gonna giv the x and y coordinates with drawImage and then u can keep adding the speed onto it(x += xspeed)(y += yspeed) and redrawing, then use an update method or double buffering to remove the flickering.

stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 3
btw.... 32 is spacebar112 is pgo here for the constant values of the keys on the keyboard http://java.sun.com/j2se/1.5.0/docs/api/constant-values.html#java.awt.event.KeyEvent.VK_RIGHT
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 4
Why would you want to use deprecated methods? Use a KeyListener instead.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 5
i never said he had to use a deprecated method. that's just what i use cuz i'm too lazy not to
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 6
I suggest both of you read the tutorial on [url= http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html]How to write a KeyListener[/url]. Using deprecated methods is not a good idea.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 7
even though im WAAAYYY ahead of my class, i'm only taking my first ever computer science class, so yes i will take ur suggestion and read that tutorial. but can u explain to me why it's not a good idea to use deprecated methods?
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 8
Deprecated methods will eventually get phased out. Those methods became deprecated in version 1.1, which was released in 1997. The newest version is 1.6, which was released December of 2006.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 9
oh haha ya. is keyListener very much different then the code i was using? cuz that may take a little while to convert in the applet that im making right now.
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 10
If you read that tutorial thoroughly, you should be able to convert your applet in a matter of minutes.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 11
lol i havnt touched the tutorial yet cuz im working on something else. but thats very comforting to know that. thanks
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 12
captainmorgan. does pressed mean that ur holding the key down?
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 13
No, it just means the key has been pressed down.
CaptainMorgan08a at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 14
well then y do they need a pressed, typed, and released? it seems like one of those would be pointless?
stephensk8sa at 2007-7-12 3:15:40 > top of Java-index,Other Topics,Java Game Development...
# 15
captainmorgan. the tutorial suggests using key bindings for individual keys instead of key listener. which one do u suggest i use?
stephensk8sa at 2007-7-21 20:32:06 > top of Java-index,Other Topics,Java Game Development...
# 16
The typed is for unicode characters while released is for all others (like spacebar or ctrl).
Bogada at 2007-7-21 20:32:06 > top of Java-index,Other Topics,Java Game Development...
# 17

> well then y do they need a pressed, typed, and

> released? it seems like one of those would be

> pointless?

no, it's not.

Different hardware signals are sent at different times during the process of pressing and releasing a key.

Using different methods you can intercept each of those signals and handle them separately.

jwentinga at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 18
Can you make it easier for me? so, what do i should use?
Dydraa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 19
> Can you make it easier for me? so, what do i should> use?I can tell you right now that you are not up to the task of creating an MMORPG.
CaptainMorgan08a at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 20
go ahead and get some code written and then post it so we have something to go on. if u cant write anything at all, then look for tutorials on the internet and then come back here. but if u still cant get anything at all written, im with captainmorgan and ur prolly not capable of an
stephensk8sa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 21
I have already done the log in and programmed the server and client sides. I also programmed a JPanel that improves the graphical render. I just need help with the key commands. So, what do you think i should do? What can you advice me about the key commands and the gameplaye I want to
Dydraa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 22

for the keys...

implement KeyListener

then in ur init method put addKeyListener(this);

then put the following

public void keyTyped(KeyEvent e){

}

public void keyReleased(KeyEvent e){

}

public void keyPressed(KeyEvent e){

}

inside the previous methods u can do stuff like

int code = getKeyCode();

if (code = e.VK_A)

{

run whatever u want like the fighting when a is pressed

}

punching kicking.. im rather inexperienced with games. im making my first one right now. but the way i guess id do it is when u draw the image u input the x and y coordinates and just keep changing the coordinates of the leg and the arm with the KeyListener and repaint the screen.

stephensk8sa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 23
Thancks, I will try that. My las question is:Which is the best form of making the animation? What do you recomend me?
Dydraa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 24
im not sure what to tell you cuz i havnt done a whole lot of games, but i know that ther is a pretty good program called gimp that is free to download that can provide a bunch of graphics and animation.
stephensk8sa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 25
The problem is not the graphics, i have got the images of the gaem. What i need is a good technique no make animations
Dydraa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...
# 26
the only way i know of is to create a series of images(which would mean ur not done making images) which perform an action which u can paint one after another. sorta like that thing wer u take a notepad and draw something on each sticky note then flip the notepad and it looks real.
stephensk8sa at 2007-7-21 20:32:07 > top of Java-index,Other Topics,Java Game Development...