Timeline for BufferedImage canvas is null
Current License: CC BY-SA 3.0
25 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 19, 2019 at 2:45 | vote | accept | KozzyMoto | ||
| Nov 26, 2017 at 17:47 | answer | added | ice1000 | timeline score: 2 | |
| S Nov 26, 2017 at 14:45 | history | suggested | user100681 | Added gameloop tag | |
| Nov 26, 2017 at 11:51 | comment | added | user100681 | Have you tried following The Cherno's youtube series?(m.youtube.com/watch?v=GFYT7Lqt1h8) he handles the gameloop in a very good way, and he also teaches you about game programming and game logic! He extends the Canvas class by the way. | |
| Nov 26, 2017 at 11:48 | review | Suggested edits | |||
| S Nov 26, 2017 at 14:45 | |||||
| Nov 25, 2017 at 13:21 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Oct 25, 2017 at 7:20 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Sep 20, 2017 at 22:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Aug 18, 2017 at 18:26 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| S Jul 13, 2017 at 14:31 | history | suggested | J4S | Removed irrelevant tag | |
| Jul 13, 2017 at 13:35 | review | Suggested edits | |||
| S Jul 13, 2017 at 14:31 | |||||
| Jul 13, 2017 at 11:21 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| S Mar 4, 2017 at 11:15 | history | suggested | Thomas | CC BY-SA 3.0 | improved formatting |
| Mar 4, 2017 at 11:07 | comment | added | Bálint | Why do you use the html-canvas tag? | |
| Mar 4, 2017 at 9:52 | review | Suggested edits | |||
| S Mar 4, 2017 at 11:15 | |||||
| Feb 27, 2017 at 15:53 | comment | added | KozzyMoto | Let us continue this discussion in chat. | |
| Feb 27, 2017 at 15:34 | comment | added | KozzyMoto | I'm not sure how that could be. I'm using the exact same setup I have used before, and it has worked for me until now. How would I check if it's fully initialized anyway? | |
| Feb 27, 2017 at 15:06 | comment | added | benh | I meant that from your current code, you haven't actually used the value in waitTime anywhere yet. are you sure you're setting the jpanel to be visible and fully intialised? | |
| Feb 27, 2017 at 15:01 | comment | added | KozzyMoto | I did the try catch, it kept giving nullpointer errors even after about 50 frames. Also is it bad to have a waitTime? Why should I never use it? | |
| Feb 27, 2017 at 14:50 | comment | added | benh | it must be because getGraphics() is returning null, which is likely to be because the JPanel hasn't finished initializing, perhaps try adding a catch for the null pointer exception and see if it goes away after a few frames? Also, you never use waitTime to actually wait in your game loop | |
| Feb 27, 2017 at 14:42 | comment | added | KozzyMoto | hmm you're right. I feel dumb. But why would g2 be null? | |
| Feb 27, 2017 at 11:26 | comment | added | benh | are you sure that its image that is null, not g2? add a breakpoint and take a look | |
| Feb 27, 2017 at 11:20 | review | Close votes | |||
| Mar 14, 2017 at 3:00 | |||||
| Feb 27, 2017 at 6:19 | review | First posts | |||
| Feb 27, 2017 at 11:04 | |||||
| Feb 27, 2017 at 6:17 | history | asked | KozzyMoto | CC BY-SA 3.0 |