Search:

Type: Posts; User: albin1228

Search: Search took 0.24 seconds.

  1. Replies
    8
    Views
    206

    Re: Tips for java books?

    Yes I did think about doing that but then I changed my mind when I saw the size of it. The thing is that I need to finish the book before I get too tired of reading it. Because if I do then I wont...
  2. Replies
    8
    Views
    206

    Re: Tips for java books?

    Well if I dont get any suggestions i might as well read the book i found. Here is a link for the book/tutorial:
    Javanotes 6.0 Table of Contents
  3. Replies
    8
    Views
    206

    Re: Is it a good book?

    Do you have any good tips that are kinda like what i described in my first post? Or will the 5.0 book work?
  4. Replies
    8
    Views
    206

    Re: Is it a good book?

    Well the problem is that in my local library there are no books on java. I live in a village so the library is not very big. Ofc I can buy a book but I would rather just have a pdf file that I can...
  5. Replies
    8
    Views
    206

    Tips for java books?

    Im thinking about reading a book about java called Introduction to Programming Using Java by David J. Eck.(Idk if its called that but thats what it says.)
    I know some basics about java and I want to...
  6. Replies
    2
    Views
    156

    Re: Multiple questions

    Ok ty. And does anyone have a pdf of some good java book?
    Okay nvm no need to post in this thread anymore.
  7. Replies
    2
    Views
    156

    Multiple questions(SOLVED/CLOSED)

    Well I can start by saying that i have very basic knowledge about programming in java and just programming in general. I learned what I know right now by watching videos. I watched them in my native...
  8. Replies
    3
    Views
    79

    Re: Problem with JMenuBar

    Im sorry for the delay but i think I know what the problem is so it's fine now.
  9. Replies
    3
    Views
    79

    Problem with JMenuBar(Solved)

    Hi!
    So im trying to make a simple drawing program and on the top of the screen im going to have a bar with dropdown menus with different colors and tools etc. My class that includes the methods used...
  10. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Fixed. Im sorry for the long post and thank you for answering
  11. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    I was wrong
  12. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Not yet but its getting there i think.
  13. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Well i have changed everything with seperate variables to for example hero.x. Here is the code that makes the Player rectangle move:


    public void setXDirection(int xDir){
    this.xDir = xDir;
    }...
  14. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    This is some code i have for the rectangle:


    Rectangle hero;
    int heroX,heroY;
    int xDir, yDir;
    int width,height;
    heroX = 100;
    heroY = 100;
  15. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Oh okay i will try that in a while

    --- Update ---

    When i do that it only displays the same coordinates all the time. Its like the rectangles i drew and created as objects arent the same. Im not...
  16. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Do you mean like the x and y coordinates or?
  17. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Im not even sure what im supposed to put and where. I have never debugged with println before and i have no idea what variables i should print and where even after i red your first post.
  18. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    I dont know what the problem is and i will probably just give up.
  19. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Well i put a println in the following way:


    public void collision(){
    System.out.println("COLLISION");
    if(enemy.intersects(player.hero)){
    System.out.println("FALSE");
    isGoing = false;...
  20. Replies
    21
    Views
    276

    Re: Java problem. Thread wont stop

    Well i havenīt fixed the problem. But it seems if(enemy.intersects(player.hero)) is never true...

    --- Update ---

    This is so annoying. I cant find the problem! Why doesnīt the intersecs work!?
    ...
  21. Replies
    21
    Views
    276

    Java problem. Thread wont stop(FIXED)

    Hello again guys!(I wrote another post yesterday)
    I have encountered another problem. It is probably another one of these things were i forget to put some code in and it doesnīt work. Well the...
  22. Re: Java game problem! Square wont move

    Was trying stuff without it... -.- Thank you for the respons!

    --- Update ---

    And btw i know that it will only move on the x axis and will fix that! Thank you guys for replying!
  23. Re: Java game problem! Square wont move

    Well I am getting closer to solving my problem! First of all i was stupid enough to not give the Thread object the location of the method run. So i wrote:
    t1 = new Thread();
    Instead of:
    t1 = new...
  24. Re: Java game problem! Square wont move

    I think I know what you mean and no i have not tried that. I will try it now but if someone got a quicker answer please tell me!
  25. Java game problem! Square wont move(FIXED)

    Hello!
    I am a beginner java programmer and a couple of days ago i started programming again(i had kinda like a break for a while). So yesterday when i got bored i just started making a random game....
Results 1 to 25 of 25