So I have a HUD scene that has a list of duplicate objects from the main scene, and I want to be able to click the list with the mouse and it toggle selects the object, highlighting it, de-selecting any other objects that were selected, and the main scene when I click that object it spawns the selected object. Think real basic lego game, which is not far off.
Right now the spawner's need to be mouse-over and press a number 1 through 4 to spawn the object that is assigned to that number. But I want to select an object from a menu that can hold a lot more objects than keys.
I have two scenes: HUD and Scene.
HUD has a menus with duplicate objects in the bottom menu to select from.
Scene has a series of tiles that highlight when moused over.
I want to select and object from the menu, highlighting it, deselecting any previously selected object, and from there click on a tile to spawn that object.
Scene: -obj 1 -tile HUD: -obj 1
When I toggle select -obj 1 from the HUD (menu), I want it to send a signal to -tile that is a string of "-obj 1" which it will use to spawn scene's -obj 1 which is on a different layer. Using said string rather than creating an actuator on the tile for each object I create.