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

Thanks for this solution but I'm still stuck on putting several "images, icons" on my plan

Hello everyone,

I'm having trouble integrating a sprite into a canvas.
I already had a post, but I didn't get a real solution to my problem.
I'll try again.
I have a list containing sprites I've created and whether they're free or not.

I have a list of coordinates with images (there may be multiple lines with different images)


I'm trying to get the procedure to take the first free sprite, give it the coordinates and image from this list, and display it in my map.
I'm trying this method to keep the option to modify it just in case.

I'll upload my file directly. (I know, it's a mess.)

Harpe4SaisonV3.aia (7.8 MB)

Thanks in advance for your help.

No need to make a new topic. I merged the two.

Sorry, I'm new to the site and don't know all the rules yet.
Thank you.

Try this:

canvasSpritePlacementV2.aia (268.0 KB)

Select a sprite image from the listview, this is added to the map.
You can then position the sprite
Select the same image from the listview to then remove the sprite

For your map/road building you could also get the images to "snap" into place

Instead of a table, you can use two lists, one for balls in use and one for the unused balls (Sprites).