Join 150,028 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,583 people online right now. Registration is fast and FREE... Join Now!
ok i didn't want to ask more questions on my project, i know that one of the members, Pbl, along with other help members w/ very very helpful insights... but i'm gonna ask my question anyways since my grade depends on it.
public void start() { Thread th = new Thread (this); th.start (); } public void stop() { } public void destroy() { } public void run () { Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
public class GreenNotes { private int pos_x; private int pos_y; private int y_speed; private int radius; private int first_x;private int first_y; private int maxspeed;
private final int y_downout = 500;
Color color;
AudioClip out;
GHPlayer player;
public GreenNotes (int radius, int x, int y, int vy, Color color, AudioClip out, GHPlayer player) {
Ok...? Maybe I am missing the point, but what's your question?
hmmmm i swear i typed my quesion.... anyways my question is
how to I "sync" the moving notes so that the scoring system works properly?
thanks
found your missing question.. its inside your code bracket..
QUOTE
but I have no idea how to make them "sync" to match each other when I press the buttons...
thanks a bunch!!!!!!
Your problem is not quite clear. Could you give a more detailed information of what you are trying to achieve.
1. Are you referring to class synchronization? 2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)
Your problem is not quite clear. Could you give a more detailed information of what you are trying to achieve.
1. Are you referring to class synchronization? 2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)
I'm trying to do "2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)"
Your problem is not quite clear. Could you give a more detailed information of what you are trying to achieve.
1. Are you referring to class synchronization? 2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)
I'm trying to do "2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)"
but stuck...
RockBander still not really understand your problem.... but with the nice comments at the beginning of your post... I'll cut&paste your code and try to understand what you mean Be back in half an hour
This post has been edited by pbl: 4 Jun, 2008 - 02:49 PM
RockBander you sure you are not bullshitting us a little bit ? Your code does not even compile.... public void KeyReleased() is not implemented And you will to post your class GHPlayer
RockBander you sure you are not bullshitting us a little bit ? Your code does not even compile.... public void KeyReleased() is not implemented And you will to post your class GHPlayer
RockBander you sure you are not bullshitting us a little bit ? Your code does not even compile.... public void KeyReleased() is not implemented And you will to post your class GHPlayer
thread.stop()... is deprecated don't use it...It created a lot of problems... use a boolean variable like threadHasToStop and in your thread code check periodically for it
I'm trying to do "2. Is that a game? like bust-a-move or dance revo or something.. (i.e. when the note moved in the exact position as of the button and the user pressed the button, points will be added to the players score)"
but stuck...
Well if thats the case.. You could add a method in your button keypressed that will check the rectangular position of your notes and compare it with the rectangular position of your button..
if the note enters the button rectangular position and the user click it then a point is passed in the score. something like that would work.
Well if thats the case.. You could add a method in your button keypressed that will check the rectangular position of your notes and compare it with the rectangular position of your button..
if the note enters the button rectangular position and the user click it then a point is passed in the score. something like that would work.
Hey Mensahero offer a beer to Cindy for me... I'll pay the tab next time I'll be in Manilla