Undo Or Erase

ChessPawnChessPawn Member Posts: 127
edited November -1 in Working with GS (Mac)
Hello again. Man, do I need lots of help. This time it would be for some sort of eraser or undo feature for the drawing system by ORBZ. Thanks guys!

Comments

  • ChaserChaser Member Posts: 1,453
    Put a rule in the actor that is being used as the drawing that says when some attribute you create "erase" is 1 then destroy this actor. Then make an erase button Rule when touch is pressed change attribute erase to 1. Then in otherwise change attribute erase to 0

    Enjoy
  • ChessPawnChessPawn Member Posts: 127
    Hey Chaser. That's a great idea, and when I tried it, it was really close to what I wanted. However, is there a way for me to be able to touch the button, somehow go into an "erase mode", and whenever I touch a part of the drawing, it erases that specific part. Or, is there someway to use your method in parts, so that it's like an undo?

    This is the drawing system: http://gamesalad.com/game/play/79364
  • ChaserChaser Member Posts: 1,453
    I can't check the link right now but instead of a button for erase you can also set the drawn actor to when touch is pressed destroy or change alpha to 0. If you have issues with it destroying as your drawing use a timer to set attribute erase after .5 seconds so that when the drawn actor is touched and erase is 1 destroy. Hope that helps
  • ChessPawnChessPawn Member Posts: 127
    That also is almost what I am looking for, but is there a way that it erases as I hold down my finger?
Sign In or Register to comment.