Progress bar in a block


Progress bar in a block

Author
Message
Rebecca17
Rebecca17
Associate Member
Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)Associate Member (138 reputation)

Group: Forum Members
Posts: 7, Visits: 24
How can I implement, that the width of a progress bar depends on the number (1-6) of the current item?
My idea is the following, but it doesn't work:

<shape progressbar>
/ shape = rectangle
/ color = grey
/ position = (50%, 10%)
/ size = (0%, 5%)
/ width = 80% * (text.WS.currentitemnumber/25)

<block WS>
/ trials = [1-6 = WS]
</block>

<trial WS>
/ stimulusframes = [1 = WSF]
</trial>

<text WS>
/ items = WS
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WS>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>
Dave
Dave
Supreme Being
Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)Supreme Being (648K reputation)

Group: Administrators
Posts: 9.6K, Visits: 44K
Rebecca17 - Wednesday, January 30, 2019
How can I implement, that the width of a progress bar depends on the number (1-6) of the current item?
My idea is the following, but it doesn't work:

<shape progressbar>
/ shape = rectangle
/ color = grey
/ position = (50%, 10%)
/ size = (0%, 5%)
/ width = 80% * (text.WS.currentitemnumber/25)

<block WS>
/ trials = [1-6 = WS]
</block>

<trial WS>
/ stimulusframes = [1 = WSF]
</trial>

<text WS>
/ items = WS
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WS>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>

<shape progressbar>
/ shape = rectangle
/ color = grey
/ position = (50%, 10%)
/ size = (0%, 5%)
/ erase = false
</shape>

<block WS>
/ trials = [1-6 = WS]
</block>

<trial WS>
/ ontrialbegin = [
shape.progressbar.width = 80% * (text.WS.nextindex/25);
]
/ stimulusframes = [1 = WS, progressbar]
/ validresponse = (57)
</trial>

<text WS>
/ items = WS
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WS>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search