• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How to create a point on my paint object to act as an identifier

Ranch Hand
Posts: 105
Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, so this is a rather hard question to explain, but I will try my best. So I am creating a painting mini game for my first java game, which actually spawned from a failed attempt at something else funnily enough. But what I want to do now is create something on my paint object that allows the user to more easily see where they are painting. For instance, say the user is trying to fill a box with the color yellow for some reason (By the way, I like the way my paint game is right now, I only want to add this feature). As the user colors it in right now, it becomes harder for the user to track where their paint object is because it gets lost in the color. What I want to do is create an indicator, a color or even something at flashes for the user to know where their paint object is and then they can more accurately color in said box. This would be especially helpful if they switch to the color black, which I am using for the eraser on this game, since the background is also black (I know its not practical, but I do not have the time to learn how to make a proper eraser yet). I don't know if this is possible, especially since I want the color the user is using to paint to not be affected by the paint object identifier. You can more easily see what I mean if you examine or run the code below:

(Note) Ignore comments that say not to edit code in a method
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic