Results 1 to 3 of 3
  1. #1
    rajkobie is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default How can I make a buffered image solid?

    First of all, I am so sorry if this is the wrong forum, this is my first time here.

    Anyway.. I have a basic sprite movement program. In that i drew a rock. (lol). I dont want my moving sprite to go over it. Pretty much i want to set a perimeter around it so that it won't go through the rock. I could use a buffered image or an image or anyother sort of image that java offers. Is there a way to make it solid that it won't go through?

    Thank you for any help :):)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I think that this should be part of your program logic more than your program graphics -- i.e., the "model" portion of your game.

  3. #3
    rajkobie is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default

    I tried setting a perimeter around it, but the problem is it lags more and then it gets stuck and stuff. Is there are better way?

Similar Threads

  1. Drawing onto a buffered image
    By trishtren in forum Java 2D
    Replies: 3
    Last Post: 04-09-2011, 09:23 PM
  2. Rotating Buffered Image distorts image
    By VortexSpin in forum Java 2D
    Replies: 1
    Last Post: 02-13-2011, 05:54 AM
  3. adding a buffered image over a jpanel
    By fatmat9 in forum New To Java
    Replies: 1
    Last Post: 11-23-2010, 03:23 AM
  4. Update existing buffered image
    By rosh72851 in forum New To Java
    Replies: 24
    Last Post: 12-04-2008, 03:43 AM
  5. Unable to draw buffered image
    By pedjasmek in forum Java 2D
    Replies: 7
    Last Post: 08-08-2008, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •