Hello
You just using 1 ID (txt_array_size) as the text object -- which will indeed only produce one outcome
If you with to add text IDs to have multiple text objects then you will need an empty array and add the text objects each time you add a new task
like:-
TextID as integer[]
and then when creae a new task to use TaskID.insert (createtext ( "task message") )
and then the loop
for xx = 0 to tasks.length
// Main Task List Window
SetTextString( TextID[xx], "length" + Str(tasks.length))
SetTextFont( TextID[xx], font )
// MOVE THE NEXT ENTRY line by 100 pixels multiplied by xx value at the time in the loop
SetTextPosition( TextID[xx], 720/2, 100 + (100*xx) - (1300-slide_y_add_task) )
SetTextDepth( TextID[xx], 0 )
SetTextColor( TextID[xx], 0,0,0,255 )
SetTextSize( TextID[xx],150 )
SetTextAlignment( TextID[xx], 1 )
DrawText( TextID[xx] )
next xx
If you have solved it then apologies but this is how i would do it
Something like this:-
// Project: tasks
// Created: 2018-08-23
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "tasks" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
tasks as integer[]
tasks.insert(createtext("text1"))
tasks.insert(createtext("text2"))
tasks.insert(createtext("text3"))
tasks.insert(createtext("text4"))
tasks.insert(createtext("text5"))
tasks.insert(createtext("text6"))
for a=0 to tasks.length
SetTextSize(tasks[a],30)
next
do
for a=0 to tasks.length
SetTextPosition(tasks[a], 10,a*30)
next
Print( ScreenFPS() )
Sync()
loop