Help with subevents

I wanted to only draw when my centrosome objects are on a specific position (after they are put on that position they cannot be moved anymore) The way I understand subevent is it only becomes true when the main event is true. I don’t know why this happened.

Here are my code:


EDIT: my code does not work :smiling_face_with_tear: does not draw my line when I click on the object where the line is supposed to be attached.

Help :upside_down_face:

What exactly is the problem? The events never run? The events continuously run?

Oh yes hahahah I forgot to tell the problem sorry. It don’t work as intended or never run.

EDIT: does not draw my line when I click on the object where the line is supposed to be attached.

Those subevents will only run once because of that trigger once on the first event. So the event will once, but then not again if CentrosomeLeft and CentrosomeRight never move.

Also, make sure you uncheck the “Clear the rendered image between each frame” on the Shape Painter object in the editor (or check it if you are updating the line every frame).

I tried removing the trigger once on the first event. Still does not run :smiling_face_with_tear: I also already have unchecked the “Clear the…”

In that case you’ll have to debug it to confirm each event you expect to be actioned gets actioned.

1 Like

I just did this hahahahah and it worked :tada:

Thank you @MrMen

2 Likes