Events without simulation
Posted: Fri Aug 16, 2013 3:47 pm
If you have a look into the new events management in Flowcode v6 (think of them like simulation-side interrupts) remember that these can fire at any time.
This means that you do not have to be simulating to write a component to extend your system. This simple demo shows the Resize event (see http://www.matrixmultimedia.com/wiki/in ... nts.Resize) coupled with some collision detection (http://www.matrixmultimedia.com/wiki/in ... TestSingle).
Make sure collision detection on the panel is off: Then drag the ball around the panel. It will interact with the walls by changing colour.
Keep us posted on your views.
Jonny
This means that you do not have to be simulating to write a component to extend your system. This simple demo shows the Resize event (see http://www.matrixmultimedia.com/wiki/in ... nts.Resize) coupled with some collision detection (http://www.matrixmultimedia.com/wiki/in ... TestSingle).
Make sure collision detection on the panel is off: Then drag the ball around the panel. It will interact with the walls by changing colour.
Keep us posted on your views.
Jonny