Asking this question since December 2014

Hello, I found myself asking the same question since December and utterly shocked that no one can answer it! I just want to know how to continuously spawn buttons and when clicked it would disappear I currently have 2 buttons but for some reason both disappear when i click one of them. Im doing this through the widget.

Hello KareemTheGod,

I have a project that I have modified to fit what I think it is you are looking for. The project spawns buttons in a grid (one at a time) and there is no limit to the number of buttons you can spawn. I have also set them up to disappear when clicked. You will need two widgets. I hope this helps.

Widget 1:
This one will spawn the button and tell it where to go. (Note: I used a button to spawn my buttons in this example. You could use what ever event you would like. )

Widget 2:
This widget will hold the functionality of the button.

27579-infdisbuttons2.png

Make it a great day

OMG thanks man this is fantastic! one thing how do I get to spawn randomly instead of specific locations? It’s ok but I would like to test that out seems fun

Hello KareemTheGod,

You could make the following changes:

Hello Ruby, sorry to bother you again i mean you are the only person who took the time to help a guy out now my problem is that for some reason when i hit play the whole logic does not get executed at all. I believe its because of the positions but im not good at that stuff im doing this on a mobile device so the widget screen is smaller here is what it looks like

Here is the logic:

And here is the other widget:

Hello KareemTheGod,

I am more than happy to help. However, this was only meant to be an example to get you started. Here is a more in depth explanation at how the math that I used works.

Note: I made a typo in the following picture. It says: “These must always equal…” it is supposed to say “When multiplied together these must always equal…” The 100 is derived from the button size and the 11 is how many buttons there should be before the math starts the next line in the grid. The 50 has to do with the height of the button with a little extra to provide some space between rows.

Make it a great day.

Im sorry im not quite understanding your math here, you see my mobile device is Samsung Galaxy S4 the resolution is 1920 X 1080 how do I apply this to your math logic>?

Hello KareemTheGod,

After looking back over your blueprints I notice you have two wires in backwards. The subtraction node that leads into the X position is spiting out negative numbers because this.