Hi, as a total noob to f2.5 to learn I'm basicallytrying to make super simple tablet game for my little daughter and I've hit a little roadblock in the logic. I'm trying keep it as simple as possible to use as few options as possible. I have a background image, when the user clicks it spawns an item. This aspects works fine. When you click on the spawned object I want to animate & destroy it. I've both both of these working in isolation, but in practice, with both events active, when I'm clicking it's instantly spawning and destroying. Is there a way I can tell it to exit from processing the user click event after the object is spawned. Essentially I want to implement:
Click
> if clicking on existing item - explode item
> if not click on existing item - spawn new random
I'm trying to find someway to process one action without the other depending on what's clicked, which sounds simple. I've tried five different ways from Sunday, for something that sounds really simple, so I'm assuming I'm missing something really fundamental with fusion2.5. I've tried searching for similar issues, I've tried setting a global value on creation of the object, with this value reset after a short duration, and the value checked to see whether the destroy action should be carried out. No joy. I've tried the counter object set to 100, reset to zero on create and incremented back on a timer to check whether. I've tried using NEGATE on whether the cursor is already over one of the explody objects before spawning. I've tried making the background an active picture and only spawning when the mouse is over this, and only destroying when the mouse is over one of the spawned objects. I haven't seem to hit on the right combination. In programming logic this one of several simple methods such as a condition statement etc.. but I'm struggling to translate this into f2.5 logic. One example failed rule attached. Attachment 21065
Is there any way anyone could suggest that would allow me to use the same left click/tap to both create and destroy, depending what the mouse is directly over. I'm assuming that the mouse over object considers all objects in the layers below, is it possible to limit it this to the object directly below the cursor position for instance?
I'm fully expecting that I'm doing something really stupid so if you could point me in the right direction I'd really appreciate it.








Reply With Quote





