List and sprite problem

Hello everyone,

Sorry if my English isn't correct.
I'm stuck creating my app. In short, I have a canvas that uses lines to create a map. I'd like to add icons to it (sprites like chests, doors, etc.). I have a list that contains the coordinates of these sprites with the image that should appear, but I don't know how to update them so that the sprites are in the right place and with the right image.

I hope this is clear enough.

Thank you in advance.

Something like this ?

locateSprite.aia (5.1 KB)

Hello,

Thank you for your help.
That's almost it, yes, but since there will be several sprites, I need to find a coded solution to select a sprite that isn't yet visible and assign it the coordinates and image.

Thank you.

We can do this all day until one of us gets fed up :slight_smile:

Hello,

Sorry to be so rude.
I'll give you some screenshots to help you understand.

In this image, I click on the icon (1), it appears on the map, and I click "Validate" (2). From there, a list appears (Image 2) and I choose the image that should appear (e.g., door, chest, etc.), then it saves itself to a list (Image 3).
And from there, I would like these icons to appear and follow the movement when I move the map and disappear when it leaves the canvas.


Thanks again.

If necessary, I can provide my .aia file.

Thanks again for your help.

How are you "moving" the map ?

For convenience, I'm sending you my .aia file
Harpe4SaisonV3.aia (7.8 MB)
My problem is in the "LesPlans" tab.

Thanks in advance

I resized many of your images to make the aia project more accessible to others

Harpe4SaisonV3.aia (1003.2 KB)

You probably need to provide a simple example aia project for what you want to achieve, the entire project is too complicated to navigate (for me).

(Clicking on the images map or icons just generates the notifier...)

It's not a big deal.
Thanks for your help anyway.
I'll keep looking.

Here is a simple example you might want to develop on from

You can drag the map around, and place the sprite with touch

canvasSpritePlacement.aia (257.6 KB)

image