toby Well-Known Member Licensed User Longtime User Apr 21, 2021 #1 I noticed that In debug mode, drawing wouldn't start until the execution reaches "End Sub" line. I'm wondering whether there is a way to make it behave the same as normal B4A projects in that the app would draw as the execution goes, line by line. Code: Copy Sub Turtle_Start Turtle.SetPenColor(xui.Color_Blue).SetPenSize(5).SetSpeedFactor(1) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) End Sub
I noticed that In debug mode, drawing wouldn't start until the execution reaches "End Sub" line. I'm wondering whether there is a way to make it behave the same as normal B4A projects in that the app would draw as the execution goes, line by line. Code: Copy Sub Turtle_Start Turtle.SetPenColor(xui.Color_Blue).SetPenSize(5).SetSpeedFactor(1) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) Turtle.MoveForward(100).TurnLeft(90) End Sub
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2021 #2 It is not related to debug mode. The commands are queued because the drawings are animated. See slide 6: https://www.b4x.com/android/forum/threads/🐢-b4xturtle-library-for-teachers-and-parents.116699/ You can switch to rabbit mode and then everything will be drawn immediately. Example: https://www.b4x.com/android/forum/t...s-for-teachers-and-parents.116979/post-731999
It is not related to debug mode. The commands are queued because the drawings are animated. See slide 6: https://www.b4x.com/android/forum/threads/🐢-b4xturtle-library-for-teachers-and-parents.116699/ You can switch to rabbit mode and then everything will be drawn immediately. Example: https://www.b4x.com/android/forum/t...s-for-teachers-and-parents.116979/post-731999