PDA

View Full Version : I need help creating some sort of reset logic.



Whalio Cappuccino
07-17-2009, 06:53 AM
If there is a thread about this, please tell me so I can lock the thread.

I need help with a section of my level I'm creating.

We have a square sponge sitting in a hole, when you take the sponge out of the hole it causes a piston to extend.

The challenge is, the sponge is set on a small platform, and if you accidentally drop the sponge off, you can't get it back on top. I want to create a reset button that will allow you to emit it back to the top, and delete the old one.

I know it's probably something very easy to do but I'm sort of brain dead right now.

Thanks in advanced.

brnxblze
07-17-2009, 07:03 AM
I think you can just have an emitter set to emit one item at a time with infinite lifetime. Since it's set to emit one item at a time, when you press the button the other one will disappear and the new one will stay. Then, press the reset button (just a button set to one-shot connected to the emitter) while in create mode so that there is one there for the player when they get there.

Whalio Cappuccino
07-17-2009, 07:11 AM
I think you can just have an emitter set to emit one item at a time with infinite lifetime. Since it's set to emit one item at a time, when you press the button the other one will disappear and the new one will stay. Then, press the reset button (just a button set to one-shot connected to the emitter) while in create mode so that there is one there for the player when they get there.

I knew I forgot something...

The problem is the cube isn't made of dissolvable material.

Is this even possible?


Nvm, I had it so it was Max Emitted 1, That can be any number, thanks. Problem Solved.