Events without simulation

A collection of posts and articles on getting started in Flowcode v6

Moderator: Benj

Post Reply
User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Events without simulation

Post 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 350 times
Keep us posted on your views.

Jonny

Post Reply