Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

AS2 help?

I'm starting to practice using ActionScript, and I thought I'd start with something simple, so I started working on a little paint program. I've gotten everything I have working so far, but I've come across a little problem:

http://megaswf.com/serve/28322/



You can draw through the color selection choices. How can I create some sort of barrier that doesn't allow that to happen?
 
Messed with action script very little. When you click to pain do this
Code:
if mouse over color

 dont draw

else

 draw

end
What would be cool is erase, fill, and shape tools, and an export option :3 Nice job tho
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top