Yeah but creating and picking are not in the same event. Creating are in a function call and picking in another function call (so both in different events). But both function call are in the same event.. but it is the same thing as putting them in the same event ?
Yes, they are in the same event, but not in the same action.
If they run in the same conditional level, they are in the same event, excluding sub-events, because when you run a sub-event, it will run top to down again and make the priority as a sequence.
For example.
-> Conditional: Every 5 seconds;
--> If object1 is NOT ON the screen:
---> Create object1 at X, Y;
---> Set object1 ID = 1;
--> Else
---> Destroy object1 with ID = 1;
it will run the code, create the object1, setup its ID = 1 and then destroy it in the same second;
Instead, you want keep it for 5 seconds and re-check it to destroy and create it again in another place, so:
-> Conditional: Every 5 seconds;
--> If object1 is ON the screen:
---> Destroy object1 with ID = 1;
--> Else
---> Create object1 at X, Y;
---> Set object1 ID = 1;
Edited:
I missed to say, sometimes, it's handful to use the action "wait=0,0" right after an action where you want make sure the order will be follow, inside the same conditional.
For example:
-> Every 5 sec;
--> Destroy object1 with Id = 1;
--> Wait 0,0;
--> Create object1 at X, Y;
--> Set ID = 1;