Page 1 of 1

Events without simulation

Posted: Fri Aug 16, 2013 3:47 pm
by JonnyW
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:
No_Collide.png
(28.01 KiB) Downloaded 2988 times
Then drag the ball around the panel. It will interact with the walls by changing colour.
Collide_Event.fcfx
(10.54 KiB) Downloaded 465 times
Keep us posted on your views.

Jonny