Class question

Hi everyone

I am new in OF, I follow the tutorials in OF wiki “Ooops! = Object Oriented Programming + Classes”, those are
pretty clear to understand how create classes, but I have two questions.

  1. How can I create a class (draw the ball) from events, for example by mouse pressed or touch event on iOS ?
  2. How cam I delete the class from event, delete the ball ?

I have experience in Action Script and Lingo, and I am so confused, becouse I dont understand how
remove the class that I create.

Please help!!!


Hi nogram,

Have you already checked out the TouchAndAccel example under iPhoneSpecificExamples? There’s an example of defining a class called Ball and then creating multiple instantiations of it.