Replies: 1 comment 2 replies
-
Why don't you use a timeline instead? Create a timeline like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello dear JsPsych community,
I have a question regarding modularity of task / task epoch codes. Lets say I want to combine two different trial epochs within a single trial. This can be as simple as :
fixation + choice + outcome ;
or more complicated :
fixation + choice 1 + choice 2 + outcome.
Lets say I have my custom plugins for implementing :
fixation + choice 1 + outcome and
fixation + choice 2 + outcome.
Now, in order to make the new custom plugin :
fixation + choice 1 + choice 2 + outcome,
do I need to duplicate my codes from the other plugins ?
I was thinking if there are better ways to achieve this using jspsych functionalities.
One way I can think is to implement functionalities of different trial epochs in different classes, and then use them within plugins ; which would solve the problem.
E.g., class 1 for choice 1 ; class 2 for choice 2 ; and then use the functions of the classes within my plugins.
Is there a way to achieve something like this using jspsych without requiring to write my own classes ?
Sorry if this is confusing...
Thanks a lot !
Beta Was this translation helpful? Give feedback.
All reactions