I can't find block code set variable with array and also is my coding correct

im newbie who's trying to set position image icon in my canvas, btw im making navigation map and i tried to do this way instead of just drag it freely cuz i dont want my map ruins when someone dont have same device resolution like mine


i wanna make like this
for (int i = 0; i < spriteList.length; i++) {
spriteList[i].setX(posXlist[i] * canvasWidth);
spriteList[i].setY(posYlist[i] * canvasHeight);
}

It looks like you are using parallel global lists to store your sprite start proportional coordinates.

To traverse parallel lists, you need the other kind of For Each block, the For Each Index From 1 to length of list(...)

That allows you to use Select Item Index from list to get to the lists of sprite components and proportions in sync.

Change sprite X and Y values using the Any Sprite blocks, which you can find in their own sub-pallette.

By The Way, if you want the Sprites to appear over a Map, switch to using Markers, which you can pin onto maps.

1 Like

image

To traverse parallel lists, you need the other kind of For Each block, the For Each Index From 1 to length of list(...) = this one eh ?
Change sprite X and Y values using the Any Sprite blocks, which you can find in their own sub-pallette =im clueless
By The Way, if you want the Sprites to appear over a Map, switch to using Markers, which you can pin onto maps

it does't work for me, is it cuz i use canvas and not map, btw i want the user to be able to click the icon and turn on true visible and shows description
thanks for the reply

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

Make what visible?

Where is the description kept?

Where do you want to show it?

sorry for late reply, i fixed it btw newproblem arises,
why when i go to other page, then go back to main, it opens camera again, i already set it to false if i click button continue after get image


and i tried to make user to take pic for verfication and it will keep looping taking pic if user dint take , but doesnt works also

is it cuz i dont have else statement in initialized part( tried that, it takes another pic, imma try download the app for testing)

Image2 or Image2.Picture?

ahh mb image2.picture