This is what i am doing:
An empty getting dragged over the floor this one also holds the busy property, and the carry_building property.
When i click on an “building” to add it, i set busy True, and give carry_building the name of the object it going to add.
And spawn the object in the main layer at the spawner(empty) and parent the building to it. From here the main scene takes it over and you can drag, place or remove the building. (when one of the option happends, busy get set to False and carry_building set to ‘’ ).
If i do the above in a normal way it works without any problems, as you can see in the blend. But if i am dragging a building and then open the building menu and click on an other building to add/change too…, the main scene is also registering the mouse click and it adds the building i was dragging already, instead of deleting it then adding the new building (as i thought it would do that).
@agoose77
Your blend file doesn’t do anything when I run it,
Forgot to say, hit B ingame to open build menu then simply l.click to drag, l.click to place or r.click to remove.
The simplest solution is to suspend the main scene when using the overlay scene. However, this will arrest any animations / logic processing in the main scene which may be undesirable
Yes i thought of doing that, but that will ruin the players game time, so i cant use this option.
I will take a look at your blend.
@monster
I hope it gives you the idea
It does give me some idea’s, but i wanted it to be uhm simple and use python over bricks, because i dont like the mess it creates. i found a great rts system a week ago, it is for 95% made with logic bricks and it works great. But that’s to much logic for me, i prefer to read and learn code instead of following wires.
@smoking_mirror
you simple need to set a property in the global Dict when a mouse over in the overlay is positive
i am setting an property busy to True when i click on a building. and checking this property when i click on a building again, with or without a building dragging and it’s not working. would GD be any differend?