Added: 2 years ago
From: thenewboston
Views: 24,609
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (102)

Sign In or Sign Up now to post a comment!
  • (ep 22)mine says "Selection does not contain a main type"

    if "public static void main(String[] args) { DisplayMode dm = new DisplayMode(800,600,8, DisplayMode.REFRESH_RATE_UNKNO­WN); display d = new display(); d.run(dm); }" is not a main type, i dont know what is

  • Comment removed

  • am i the only one that gets a null pointer exception from the movieloop method that is thrown fromthe update method?any ideas????

  • lol this shit works

  • I got 5 warnings

  • @Yoieh What are they? Just yellow? I have 5 yellow warnings and it still works fine.

    

  • @sev07knight yes the are yellow but its just a black screen for me in like 2 sek :P

    than its stops

  • Am I the only one that had it worked?

  • @sev07knight Yeah main dident :( 5 warnings

  • i get a white screen probably cus my monitor is 1024x768

  • In my script, it shows background and the animation's first scene, but it doesn't animate. What's wrong? D:

  • Why did we build the method createCompatibleImage? We never used it!

  • In ScreenMenager class:The import java.lang.reflect.InvocationTa­rgetException is never used. Why is imported ?

    And what is imported in bucky class ?

  • @az000990 same stuff that was imported in the first animation tuts

  • Um... my new screen class KINDA works... it shows a white screen then it flashes the actual images for just a second and then stops... anyone? Can anyone help? Please?

  • The new screen class sucks. It might not flicker, but at least the old one doesn't show a black screen.

  • Confused, i typed word for word w/o errors, and i only get the background, no faces.

  • @leopardtate nevermind, i figured it out.

  • I get the black screen of doom with this "perfect screen manager :D", the flickering one works fine tho :(

  • Comment removed

  • Comment removed

  • I just get a black screen and the exception is "Exception in thread "main" java.lang.IndexOutOfBoundsExce­ption:"

    anyone know whats going on?

  • Great videos, worked perfect.

    

  • Well i got The new Display stuff(resolution thing) to work, but nothing else....

  • @Tamazon19 Me too! Well... everything shows up for just a second at the end and then just stops the program...

  • @302MineCrafter same here :(

  • No i didn't click your ads on purpose.

  • I can´t see my images :(

  • if your getting the error "Exception in thread "main" java.lang.NullPointerException­"

    check that the line f.createBufferStrategy(2); is outside(after) your try catch statement in the SCREEN MANAGER class around line 61

  • My code is fine but when I run the application the animation is perfect for 2.5 sec and for the last half it start flickering like hell (worst than the crappy version of the animation). Does my computer suck or am I wrong with my code?

  • anyone know why I would get my background, and looking fine I might add, but not the liitle images?

    got them before during the initial animation, the choppy one that is...

    but after this, nothing.

  • @xFaize make sure your writing your file right.

  • @TheAngel2ome or that your calling it in the draw method.

    ex:

    g.drawImage(a.getImage(),0,0,n­ull);

  • If you are getting a blank screen or nothing at all:

    In screenmanager.class check the update method. As well as the fix mentioned earlier (should be !s.contentsLost()). Make sure the if method is:

    if(w != null)

    For some reason I'd typed mine as equal to null!

  • Damn I dint put '!' before s.contentsLost() in update method so it didn't worked for my :/ .. took me like 20 min to work it out and fix it :/

  • Holy crap doing this is so much easier in C# XNA

  • i keep getting 3 errors, with no red in either of my 3 programs

    Exception in thread "main" java.lang.NullPointerException at ImportantStuff.ScreenManager.r­estoreScreen(ScreenManager.jav­a:111) at ImportantStuff.bucky.run(bucky­.java:48) at ImportantStuff.bucky.main(buck­y.java:13)

    two of them are restore screens and one is b.run, they arent in red and according to the tutorials they are exactly the same down to the spaces.

  • i'm looking for a tutorial where the graphics actually show up

  • I solved the problem by getting the code from the website:

  • Comment removed

  • @arengorsky thenewboston/forums.

    sorry youtube won't let me post a website.

  • After I spent around 2hours on this , it decided not to work and I don't know why. when I run it the whole screen starts to flicker black and white. can someone pls help? I don't feel like going through all the tutorials again to find the problem.

  • My screen just goes black :/

  • nevermind me im an idiot

  • Comment removed

  • Mine doesn't work, I copied the script but it doesn't work!

    Please someone help!

    When I press the run button, I see that my comp is thinking (I see a hourglass for a sec) and then nothing happens

    Maybe it's about my hardware, maybe it can't handle running it

    I have:

    CPU: 2.01GHz single core

    GPU: ATI x1600pro 256mb(DX9; Shader3.0; doesn't support OpenGL)

    Motherboard: Old piece of s***

    RAM: 1GB ddr

    please help!!!

  • mine just shows one face doesnt show the other face

    what have a done wrong

  • You are the best!

  • wow whole my screen went flashing and the background was rly small and my animation he aint went blinking! :(

  • ive checked my code over and over ran through all the videos and still all my program does is go black for a little less than a second... what did i do wrong?

  • @jdatabean have u fixed this problem? i have the same one :(

  • @jdatabean i had the same problem .. it turned out to be in the Animation class.. i had..

    public void Animation() instead of public Animation() ..as soon as i took out the 'void' it worked :)

  • it worked soo happy right now ^^

    thx bucky your the best

    

  • Sorry, I'm getting the black screen issue, too. Would you be able to post your code, please?

  • @neohelios77

    SOLUTION:

    typo at line 87 (or so) in ScreenManager.java:

    if(s.contentsLost()){

    should be corrected as follows:

    if(!s.contentsLost()){ //duh... that's what I get for straight-copying his code & not paying attention!

    Found solution on Bucky's forum (see his YouTube TheNewBoston user page for address). GREAT forum, BTW; good supporting info for his tutorials.

    If you are having black screen, then double check your code.

    Thanks Bucky!

  • @neohelios77 Thanks man, I spent about an hour searching for the problem, even rewriting the whole thing, and all I forgot was an "!" shoulda checked here first!!!

  • Comment removed

  • Are all these Java Game Tutorials Java Applets? Just checking

  • @5trayProductions

    The game program in the tutorial is a full-screen Java application, not an applet, but you can probably convert it to an applet easily.

  • thx a lot! but PLS somebody help! I am getting a black screen like many others with no pictures. I tried it on my other computer and I got a blank white screen instead. Ive checked the code and the directory and they perfectly match. Anybody fix this problem yet?

  • @jafarhh have u fixed it?

  • u r super awesome!

  • i followed this tutorial but all i get is a full screen window fill with black color.

    no bg, no face1 and face2.

    anyone knows what is going on??

  • I am following the tutorials bucky.java, unfortunatley I have 72 errors which may just come down to 1 { or } but as I cannot see the full code have to keep watching same ones, as good as they are it doesnt make my fingers type better as I am trying to watch, at the end of each tutorial could you maybe show the code line by line so we can pause it at the end of each tutorial?

    Good Tutorials though, good job!

  • does your face images got a blank square around it? or the area around it was transparent?

    is there a way to apply transparency?

  • @tauamepacce You can't do that with paint. You could use GIMP and when you select "new" - there's something like "fill color" - there you can set your background to transparent. If you don't get it - google it. Worked for me.

  • For anyone that tried using a background image that wasn't big enough, you might have gotten a flashing screen under the photo. You can fix this by resizing the bg image to fit the screen size easily:

    public void draw(Graphics g) { g.drawImage(bg,0,0,(int)s.getW­idth(),(int)s.getHeight(),null­);

  • @coydigga Thanks dude! You fixed my issue! You help me not kill people with annoying flashing screens!

  • not sure if i messed something up but when i load it i get a blank screen, it was suggested that the directory to the image is wrong but i know for sure that my directory is correct. i could send you my code and you could take a look but im not sure if thats possible. any help would be appreciated. thanks again for the wonderful tutorials and keep it up! =P

  • @TheMurakai in your ScreenManager class make sure in update() you have:

    if (!contentsLost... (aka if NOT contents lost)as opposed to

    if(contentsLost.... after all you want to show your screen only if you HAVEN'T lost the contents!!!

  • @Sebastiantroy1 Thankyou very much kind sir!

  • funny your other vids have only like 900 views and this 1 has 2500

  • @11wesley11

    I think it's because some people just want to check out what it will be in the end before they try it, but I trusted Bucky this far and just went with it :D.

  • Comment removed

  • Comment removed

  • I'm getting no pointer exception in the movie loop, how do I fix that?

    all the program does is make the screen blink a few times.

  • Make openGL tutorials. plz

  • btw: To set the image dead center for a 800x600 display mode: here is the code:

    int x = 800/2-(124/2);

    int y = 600/2-(102/2);

    g.drawImage(a.getImage(), x,y, null);

  • 124 is the width of my image and 102 is the height

  • If you know its an 800x600 display mode why are you wasting time dividing by two? lol

  • Comment removed

  • Thanks bucky you saved us form seizures and the pain of a major headache and your tutorials are sweet look forward to learning more and having fun

  • Awsome!! Ey bucky, you don't have to thank us, we thank you for all of your great tutorials!

    But you never finished tucora/phpgame, do you?

  • what you know about, is it a faster way --> VolatileImage

  • risky plaaaaaaay

  • Very nice! YOU're awesome!

  • Btw:

    Private int comment = currentComments++;

  • I just get a plain white screen D:

  • Had the same pb before, pb was that the image were not loaded properly.

    Make sure the directory of the image are correct.

  • But the directory worked when we used images.java

  • @allasktulu thanks for reminding to check the directories, cause i was an idiot and forgot on folder to include

  • Thank you!

  • Thanks Bucky... u rock!!

  • Thank You, Bucky!

  • Hey can you do some Maya Texturing Tutorials?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more