Add Object One Time In BGE

Ok Im Building a World War II Game In The BGE, It’s Called “Winter War” And Based Off The Finnish And Russian War.
I Have A Map Thats Used For Reference And I Have It To Where You Click On “Sweden” Or “Russia”, On The Map. It Adds A Object (Red) And Appears Over The Title (“Sweden”, “Russia”) But I Don’t Know How To Keep It From Showing Up More Than Once, Since The Object That Goes Over The Title Is Red And Is A Little Transparent, Once You Click More Than Once It Fills In And Becomes A Solid Color, So How Can You Make It To Where It Stops From Adding More Than One Object Using The Add Object Actuator?

Thanks, :slight_smile:

Please Don’t Capitalize Every Word. It’s Hard To Read.

How are you adding it? When do you want to remove it. Some more details would be good.

I click and adds it in the same spot if my mouse is over it, but i only want it to appear once, so when i move my mouse over the invisble plane i click then appears in the same spot a translucent red plane (highlighting for the map) but if i keep clicking over the plane it ads and makes the spot solid

Try This:

Add a boolean property called “Added” or whatever you want. Set the click event to only occur if “Added” is false. Then on the click event add the object and set the “Added” property to true.

All subsequent clicks won’t add the object.

Can you add a little more Detail i am confused! Please

thanks

can you help me

redbaron5’s suggestion is pretty simple - here it is in blend file format.

OnceExample.blend (486 KB)

EDIT: P.S. Please don’t make duplicate threads. I think it would be wise to wait for an answer, or bump your original topic, rather than make a new one.

[QUOTE=SolarLune;2410473]redbaron5’s suggestion is pretty simple - here it is in blend file format.

[ATTACH]242807[/ATTACH]

EDIT: P.S. Please don’t make duplicate threads. I think it would be wise to wait for an answer, or bump your original topic, rather than make a new one.[/QUOTE

Thanks! So much! I know I can’t really wait I’m really tired and I’m Trying to learn python too. So I’m really stressed,
thanks for answering me!!

I will help where I can :smiley: to teach you python…
here is a nice file -
I commented it after I wrote it…

it’s my first almost 100% me script.

Attachments

KeyDictandDoor(Commented).blend (523 KB)