Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (58)

Sign In or Sign Up now to post a comment!
  • im getting a error: Description Resource Path Location Type

    The method getY() is undefined for the type Dude Board.java /Terrarium/src/TerrariumPackag­e line 32 Java Problem help plz? :)

  • heyy i was kinda wondering im going to make a game like terraria what engine should i use?

  • ok so i fixed my errors from the last vid but now the back ground is not showing up can you help me asap pls

  • Great tutorial, but how would you make it to where the background scrolls automatically over time rather than linking it to movement? Much like it does in side scrolling space shooters, for example.

  • @schwartz0420 In the move() method, make the x-value increase steadily, like nx2 = nx2 + 2

    Then you make your dude fixed by removing his x-movement and you have a fixed dude moving on his own to the right (seemingly, it's actually the background that moves to the left).

    I'm doing that, but for some reason, every time the background loops two times, it stops looping once (tried adding a third, but then it stopped looping every third panel).

    Math + Saturday != working >.<

  • I guess one thing that made me overcomplicate things was my stubborn-ness to use a system similar to SNES, SEGA Genesis, Game Boy, NES, etc using a system of tiles - no winder my brain aches, this is much simpler.

  • Move the mic away a little bit from your face.

  • Its not working. Its only running the JFrame class. Please, please, please help!

  • oh, didn't add the code, /E08h3wQ0

  • Comment removed

  • on my one, it scrolls as it is supposed to but it stops repeating after a bit, here's the code:

  • My character moves faster than the background moves. Why is this?

  • Comment removed

  • @FloormanUK Somethings not synced

  • Bad audio AGAIN! This time worse than the last. Back off the mic by 3 inches.

  • HI where is the left character picture to download?

    

  • @DARKOOMER he didn't give it cuz u can just flip the image on the editor

  • why is the mic so close 2 your mouth!

  • Eclipse FTW!

  • Comment removed

  • Great job!!

  • dude back up from the mic

  • check out my java game Defend the Portal..source code at link in description

    youtube /watch?v=-3I_hUg06Dg

  • thanks for ur tutorial, but ehh

    you should buy a better micro or work or your voice:P

    sometimes it hard to listen to your voice

  • u sound like those army guys in half life 1

  • Thanks for the videos!!

  • were

    

  • @200Godzilla

    1) download the JDK (Java Development Kit)

    2) Download JRE (Java Runtime Environment) You might have this already updated but just download it

    2) Download Eclipse IDE for Java

  • were can i download java 2?

  • Interesting

  • if( (p.getX() - 1790) % 2400)

    I do understands what it does, but where does the value "2400" come from?

    Thanks for great tutorials btw :)

  • @Mattedatten

    I think 2400 stands for the width (in pixels) of the background picture

  • @Mattedatten the 2400 is twice the width of the background image, i didn't completely understand this, but i think it allows the image to be created twice so that you have an image generating that you're about to walk on, while also having the image you're walking on currently

  • @Mattedatten You have the locations of two backgrounds being controlled (one by variable nx, one by nx2). The goal is to reset the value of nx and nx2 at a point to 0 (start of frame) and continue to increase their values, to simulate moving right.

    As you can see, when x is 590 the first bg resets, at 1790, 2nd bg resets, at 2990 1st bg resets then at 4190 2nd bg resets. Each are 1200 apart (size of frame) and each bg reset is 2400 apart (590,2990, etc). This is where the mod 2400 comes from.

  • "javarpg#co#nr" , for some great java rpg tutorial => replace "#" by "."

  • Comment removed

  • hiya do you have a vid on how to place the background image on the game

  • @MissCNSingh look at the previous in the series, where he codes the basic game, but if you want here it is anyway: public Board() { p = new Player(); addKeyListener(new AL()); setFocusable(true); ImageIcon i = new ImageIcon("FILE LOCATION"); img = i.getImage(); time = new Timer(5, this); time.start(); }

  • You should have most of the code in the JFrame though.....That way it is using objects and modifying them in the main class instead of using the Jframe just as a display. This also makes it very hard to double Buffer. My question is if you are using a Jframe then why are you not using a Buffer??? You are still using repaint() which inherently lags and you didn't even change the update() to double buffer. Which means you fail as a Java programmer :)

  • @JetFusion99 you're an asshole.

  • @driojas Lol! That made me laugh.

  • Awesome guide :)

  • Hi!

    I do not understand why why have to make the test:

    if(p.getX() == 1790) p.nx2 = 0;

    in the Board class.

    Could someone explain me it?

  • Hey nice video you have posted. I am also working on a sidescroller, but using C/C++ instead!

    Now, I have an offtopic question, what program are you using to record your screen? I've tried a couple of them out there, but none of them is really fulfilling my needs!

    Thanks and keep up with the good work!

  • @KuramaYoko10 camtasia studio

  • @KuramaYoko10 Hypercam2 is the best one

  • @KuramaYoko10 he's using Camtasia Studio... best Recorder and Editor all in one...

  • what program is u using ?????

  • @oll187 It's Eclipse

  • instead of: nx2 = nx2+dx; use nx2+=dx;

  • @TheTIprogrammer That's a shorter version which is neat I like using it too, but since this is a tutorial I think writing it the long way would make more sense to those programmers who don't know that shorter version.

  • @SteveSpieldberg360 Not being rude, but if they were wanting to make a game; the should know basic Java. =)

  • @TheTIprogrammer lol good point

  • THANKS

  • Thx for your videos

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