收藏
回答

小游戏可视化开发工具的滚动列表的“滚动到第X个子元素”无效。

框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 2.1.3

我创建的列表一共有84个数据,有20列,也就是5行。我无论设置滚动到第多少个子元素,最终展示结果都是滚动到第21个子元素。比如设置滚动到81个子元素,实际滚动到了第21个子元素


<block xmlns="http://www.w3.org/1999/xhtml" type="Scrollview.scrollToItemByIndex" category="plugin" x="40" y="71"><field name="OPTION_LIST">#;OJ31.Y]CuPpDsMy4R`</field><value name="p_number"><shadow type="text" category="null"><field name="TEXT">81</field></shadow></value><next><block type="Logic.wait" category="logic" disabled="true"><value name="DURATION"><shadow type="math_positive_number" category="null"><field name="NUM">1</field></shadow></value><next><block type="Logic.wait" category="logic" disabled="true"><value name="DURATION"><shadow type="math_positive_number" category="null"><field name="NUM">1</field></shadow></value><next><block type="Logic.wait" category="logic" disabled="true"><value name="DURATION"><shadow type="math_positive_number" category="null"><field name="NUM">1</field></shadow></value><next><block type="Motion.changeXY" category="motion"><field name="OPTION_LIST1">_self_</field><field name="OPTION_LIST">y</field><field name="OPERATE">+</field><value name="DXY"><shadow type="math_number" category="null"><field name="NUM">6</field></shadow></value><next><block type="Sound.playSound" category="sounds"><field name="OPTION_LIST">4_dwiCJA6jbB4</field><next><block type="Data.changeVariableBy" category="data"><field name="OPERATE">+</field><value name="VARIABLE"><shadow type="Data.getVarOrigin" category="data"><field name="VARIABLE">%#q;JLtW%7*@p^VEY{,r</field></shadow></value><value name="VALUE"><shadow type="math_number" category="null"><field name="NUM">1</field></shadow></value><next><block type="Control.sendMsg" category="control"><field name="TARGET">_all_</field><field name="OPTION_LIST">%qE;#zaTdfxM6*MrRIA(</field><next><block type="Logic.wait" category="logic"><value name="DURATION"><shadow type="math_positive_number" category="null"><field name="NUM">0.2</field></shadow></value><next><block type="Motion.changeXY" category="motion"><field name="OPTION_LIST1">_self_</field><field name="OPTION_LIST">y</field><field name="OPERATE">-</field><value name="DXY"><shadow type="math_number" category="null"><field name="NUM">6</field></shadow></value><next><block type="Logic.if" category="logic"><value name="CONDITION"><block type="Operators.boolean" category="operators"><field name="OPTION_LIST">equals</field><value name="OPERAND1"><shadow xmlns="" type="math_number"><field name="NUM">0</field></shadow><block type="Operators.compute" category="operators"><field name="OPTION_LIST">residual</field><value name="NUM1"><shadow xmlns="" type="math_number"><field name="NUM">0</field></shadow><block type="Data.getVar" category="data"><field name="VARIABLE">%#q;JLtW%7*@p^VEY{,r</field></block></value><value name="NUM2"><shadow type="math_number" category="null"><field name="NUM">20</field></shadow></value></block></value><value name="OPERAND2"><shadow type="math_number" category="null"><field name="NUM">0</field></shadow></value></block></value><statement name="SUBSTACK"><block type="Scrollview.scrollToItemByIndex" category="plugin"><field name="OPTION_LIST">#;OJ31.Y]CuPpDsMy4R`</field><value name="p_number"><shadow xmlns="" type="text"><field name="TEXT">61</field></shadow><block type="Data.getVar" category="data"><field name="VARIABLE">%#q;JLtW%7*@p^VEY{,r</field></block></value><next><block type="Logic.wait" category="logic" disabled="true"><value name="DURATION"><shadow type="math_positive_number" category="null"><field name="NUM">1</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block>
回答关注问题邀请回答
收藏
登录 后发表内容