ra4king
|
 |
«
Reply #30 - Posted
2011-02-13 10:48:11 » |
|
I'm in the US and it is 4:47 am where I am (i don't sleep much  )
|
|
|
|
bobjob
|
 |
«
Reply #31 - Posted
2011-02-13 10:55:07 » |
|
I'm in the US and it is 4:47 am where I am (i don't sleep much  ) the joys of getting into programming, it really takes a toll on a persons bio'clock.
|
|
|
|
ra4king
|
 |
«
Reply #32 - Posted
2011-02-13 10:57:29 » |
|
my parents hate it and they're doing all they can to control me  too bad they're asleep haha
|
|
|
|
Games published by our own members! Check 'em out!
|
|
gouessej
|
 |
«
Reply #33 - Posted
2011-02-16 11:33:58 » |
|
Thank you for the removal of the popup but I cannot use the keyboard like before. Other applets in the showcase sections work fine on my machine (I have tested ApoMario for example).
|
|
|
|
ReBirth
|
 |
«
Reply #34 - Posted
2011-02-16 12:50:26 » |
|
The game works well here so I can't give any feedback. I have advice, why dont make your own image and title for cpright safety? it's not hard to draw an unanimated character (I think)
|
|
|
|
ra4king
|
 |
«
Reply #35 - Posted
2011-02-16 19:30:39 » |
|
Thank you for the removal of the popup but I cannot use the keyboard like before. Other applets in the showcase sections work fine on my machine (I have tested ApoMario for example).
Every button I have set works fine. You have to click to focus after clicking on "Play Now!" The game works well here so I can't give any feedback. I have advice, why dont make your own image and title for cpright safety? it's not hard to draw an unanimated character (I think) I wanted to make it look like the original because people want something very similar to the actual Doodle Jump. Plus I can't draw on a computer to save my life 
|
|
|
|
gouessej
|
 |
«
Reply #36 - Posted
2011-02-17 11:08:38 » |
|
Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard.
|
|
|
|
ra4king
|
 |
«
Reply #37 - Posted
2011-02-17 23:31:27 » |
|
Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard. That is very strange. I hope I'm not insulting you with this last question, but are you using the arrow keys?
|
|
|
|
gouessej
|
 |
«
Reply #38 - Posted
2011-02-18 13:04:36 » |
|
Every button I have set works fine. You have to click to focus after clicking on "Play Now!"
I do this as the mouse works but not the keyboard. When I'm in the game, I can use the mouse to shoot and that's all, I cannot move with the keyboard. That is very strange. I hope I'm not insulting you with this last question, but are you using the arrow keys? Yes I am. I tried to use both arrow keys and A & D. When I press a key, it works like the applet does not have the focus, the browser handles the key. This problem happens even though I click onto the applet.
|
|
|
|
ReBirth
|
 |
«
Reply #39 - Posted
2011-02-19 12:16:37 » |
|
The keys are similiar to one of browser's shortcuts maybe?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
gouessej
|
 |
«
Reply #40 - Posted
2011-02-19 13:44:07 » |
|
The keys are similiar to one of browser's shortcuts maybe?
No. As I said, other applets using the same keys work just fine. Maybe the KeyListener and the MouseListener are not on the same component.
|
|
|
|
ra4king
|
 |
«
Reply #41 - Posted
2011-02-19 21:39:16 » |
|
The keys are similiar to one of browser's shortcuts maybe?
No. As I said, other applets using the same keys work just fine. Maybe the KeyListener and the MouseListener are not on the same component. The KeyListener and MouseListener are on JApplet's ContentPane.
|
|
|
|
ra4king
|
 |
«
Reply #42 - Posted
2011-02-24 20:27:59 » |
|
Ok here is how it works. I have 2 components, one for the Menus, one for the GameWorld. When you click play, I remove the Menus component and add the GameWorld component. The KeyListener and MouseListener objects are, however, added directly onto the JApplet, not on either component.
|
|
|
|
philfrei
|
 |
«
Reply #43 - Posted
2011-02-25 04:09:56 » |
|
Just tried it. Fun! Good sf/x too. I liked discovering what the different objects do. No bugs or problems to report, that I came across. Nicely done!
So, this is a copy of a game on a hand-held? Copying is a good way to learn. I hope your plans include ambitions for designing and writing your own, too.
Thx!
|
"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
|
|
|
ra4king
|
 |
«
Reply #44 - Posted
2011-02-25 04:22:52 » |
|
Just tried it. Fun! Good sf/x too. I liked discovering what the different objects do. No bugs or problems to report, that I came across. Nicely done!
So, this is a copy of a game on a hand-held? Copying is a good way to learn. I hope your plans include ambitions for designing and writing your own, too.
Thx!
Thanks! What does sf/x mean  And this was my first ever game so I wanted to test my graphics and designing abilities!
|
|
|
|
Mickelukas
|
 |
«
Reply #45 - Posted
2011-02-25 09:08:06 » |
|
What does sf/x mean  And this was my first ever game so I wanted to test my graphics and designing abilities! Sound effects  Mike
|
|
|
|
ra4king
|
 |
«
Reply #46 - Posted
2011-02-25 19:36:17 » |
|
What does sf/x mean  And this was my first ever game so I wanted to test my graphics and designing abilities! Sound effects  Mike Thanks, I didn't know that abbreviation. Also, I have included a link to the source code. Check out the first post of this thread 
|
|
|
|
ra4king
|
 |
«
Reply #47 - Posted
2011-02-28 00:28:44 » |
|
gouessej, is there something wrong with the listeners in Java? Putting the Key and MouseListeners on: -the component that draws the game does not work, -the GlassPane does not work, -the RootPane does not work, -(out of desperation) the JLayeredPane does not work
Only the content pane works for me and the majority of people playing this game.
Is there an inconsistency with different version of Java and/or the operating system they're installed on?
|
|
|
|
ra4king
|
 |
«
Reply #48 - Posted
2011-03-02 21:52:50 » |
|
By the way, I just noticed the Featured Games section  Could you guys rate my game? Thanks! 
|
|
|
|
loom_weaver
|
 |
«
Reply #49 - Posted
2011-03-04 03:57:42 » |
|
Same problem as gouessej.
Clicking the mouse works but the keys don't. MacBook Pro, java 1.6.0_22, running in Safari.
|
|
|
|
|
Captain Awesome
Junior Member   Medals: 2
Hi
|
 |
«
Reply #50 - Posted
2011-03-04 11:55:31 » |
|
Same problem as gouessej.
Clicking the mouse works but the keys don't. MacBook Pro, java 1.6.0_22, running in Safari.
Try updating java, latest version is release 24
|
|
|
|
|
ra4king
|
 |
«
Reply #51 - Posted
2011-03-04 20:13:03 » |
|
Same problem as gouessej.
Clicking the mouse works but the keys don't. MacBook Pro, java 1.6.0_22, running in Safari.
Both of you are using Macs. So it must be a problem with Listeners with Java for Mac since the keys work on all Windows and Linux computers. Write once, run everywhere huh? 
|
|
|
|
Apo
|
 |
«
Reply #52 - Posted
2011-03-05 12:48:46 » |
|
No not only on macs ... on my pcs with Windows Vista and Windows 7 same problem ... tested with release 24 and Java 7 running firefox.
|
|
|
|
|
loom_weaver
|
 |
«
Reply #53 - Posted
2011-03-05 15:46:16 » |
|
I did some testing the other day with a very basic applet and was able to get it (using KeyListener) working on my system within Safari. I also tried downloading your source code and modifying it in a few different ways but no luck. I managed to get JDoodleJump to run fine on my system when launched directly from my IDE but it still did not work when running it from Safari (the keys still didn't work).
I think the problem has something to do with slight differences across OS/browser/JRE combinations in how focus is handled.
|
|
|
|
|
bobjob
|
 |
«
Reply #54 - Posted
2011-03-05 20:58:35 » |
|
to allow keyboard input into buggy java version on Mac. (64bit using Chrome) with my own applets I had to click in the address bar then click back on the applet
|
|
|
|
ra4king
|
 |
«
Reply #55 - Posted
2011-03-05 23:49:46 » |
|
JDoodleJump works in Safari, Internet Explorer, Firefox, and Chrome on my Windows 7 x64 box and my parent's Windows XP.
What is weird is how, like Apo said, it doesn't work on Firefox, Windows 7 when it works on mine. That doesn't help me try to narrow down the problem :/
|
|
|
|
gouessej
|
 |
«
Reply #56 - Posted
2011-03-06 15:54:46 » |
|
That doesn't help me try to narrow down the problem :/
I'm going to give a deeper look at your source code, I should be able to fix this bug. Edit.: Please can you use Applet instead of JApplet? Is Swing mandatory? Edit.: strange... the mouse adapter is not added on the same component than the key listener, I was right: 1
| gw.addMouseListener(new MouseAdapter() { |
1
| addKeyListener(new KeyAdapter() { |
Edit.2: I was right, you were wrong. The key listener in on a GameWorld that extends JComponent whereas the mouse adapter is on the content pane.
|
|
|
|
Terminalord
Senior Newbie 
|
 |
«
Reply #57 - Posted
2011-03-06 17:26:58 » |
|
Fun little game. Good work.
Firefox 4 beta 12 Windows Vista
|
Terminalord
|
|
|
ra4king
|
 |
«
Reply #58 - Posted
2011-03-06 18:41:35 » |
|
Agh was that in the public source code? That must have been the wrong version then since in the current game on my website, both listeners are added to the content pane. And I really don't see a difference between Applet and JApplet other than that JApplet supports Swing. What is the advantage of using Applet? Fun little game. Good work.
Firefox 4 beta 12 Windows Vista
Thanks!
|
|
|
|
gouessej
|
 |
«
Reply #59 - Posted
2011-03-07 11:08:00 » |
|
Agh was that in the public source code? Yes. That must have been the wrong version then since in the current game on my website, both listeners are added to the content pane. Maybe try to put them both onto the GameWorld instance. And I really don't see a difference between Applet and JApplet other than that JApplet supports Swing. What is the advantage of using Applet?
Use Swing only if it is required. If you don't need Swing, you don't need to use a JApplet. Applet is generally a bit more reliable than JApplet.
|
|
|
|
|