Question by
wtpWillyum · Mar 23, 2018 at 10:55 PM ·
scripting problembuttonbuttonsmethods
How do I run a method/behaviour upon GUI button press(onClick)?
I am currently reading the Introduction to Game Design, Prototyping, and Development book(chapter 27), and have successfully implemented flocking of boids to attractors. However, I would like these behaviours to only occur during a button press, and not "initialize" immediately. Could anyone please help point me in the right direction regarding having methods start upon button press, and not right away? Thank you for your time.
Comment