Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Game Development - 26 - Watching the Sprite Move

Loading...

Sign in or sign up now!
26,152
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 24, 2009

We finish and finally get to watch this thing bounce around.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 12 dislikes

Link to this comment:

Share to:

Top Comments

  • And now, with this new power, I shall make a GENERIC SCREENSAVER! And all shall tremble before my 350 lines of code. And college graduates from the farthest corners of the Earth shall ask of me, "Sire, tell us how thou didst achieve this marvelous wonder!" And I will say, "lol nope."

  • instead of not showing us the result you can just do it off fullscreen by not calling the setfullscreen method

see all

All Comments (75)

Sign In or Sign Up now to post a comment!
  • @00kopoka I think it does have something to do with two monitors because I'm having the same exact issue.

  • @TheRicher112 Yea same, I have tried changing many things, but the sprite cannot seem to stop and go the other way, its like the program cant correctly check the s.getHeight/Width, hmmm i wonder, would having 2 monitors mess this up? :( help

  • We thank you! My good bucky

  • @TheRicher112 yeah mine does this too

  • WTF, my image just leave the screen in the right-bottom corner :D What I have to do?

  • Fixed it, checked the code over and over again and saw that I have typed 1! line wrong

  • @tikyorules I've got the same problem :(

  • hey bucky, i have followed from 24 to 26 and followed all the codes and the positioning of x and its velocity is working correctly after moving from left to right when it reaches the edge of my screen to the right it bounces back to left, but my problem is the y axis my y doesnt seem to move, the movement of my sprite is just left to right, did i missed something about the y? i have been tinkering the codes for the get y and set y but i cant seem to find it, hope you could answer me, and thanks.

  • @neutronIRT don't waste your time on java. Java is a piece of shit.

View all Comments »
Loading...

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