Pummel Party

Pummel Party

Destroy friendships in the Pummel Party Workshop
Build new Boards and Minigames! Share your creations and discover other pummelers friendship ruining handiwork!
Learn More
Mod Editor Help - Prefab/Custom Logic/Animation issue
Hi everyone,

I'm currently working on a custom tile for my map in the Mod Editor and have run into a reoccurring problem. It related to moving prefabs across the screen and being unable to do it consistently. It's long winded but here's the detail below.

Hurricane Simulator - Prefabs & Logic Components:

Tile Functionality: The custom tile has Actions. One of them is to Spawn Prefab (prefab name: 'Hurricane Object') when a player lands on it. This prefab is setup so that it is has a parent which is a Transform. The Transform is invisible and used for the future action of moving itself and child objects across the screen from left to right. This is done with the Play Tween Animation action. If there is a better way to do it, please let me know. but this is done to simulate the hurricane; I could only get the transform to move via an action but not the prefab.

Prefab Logic: The prefab includes a Logic component with a Wait action and then a Kill/Destroy action set to 'This Object'. I also needed this because without it, the prefab spawns at the Start Tile once its animation ends and I have no idea why.

Problem: While the setup works as expected on the first use of the tile, the prefab fails to respawn the second time the tile is triggered. Despite the custom tile having a Spawn Prefab action configured, the prefab doesn't reappear.

Here's what I've tried so far:

- Ensuring the prefab is being spawned dynamically by the tile each time & confirming the tile name is correct.
- Adding the Kill/Destroy action to the Prefab's Logic component to clean up after the animation completes.
- Debugging the 'Spawn Prefab' action in the tile’s action list and confirming it’s set correctly.

Closing: I suspect the issue is related to the way prefabs are dynamically spawned and destroyed, possibly leaving a reference or state that prevents reinitialization. Has anyone else experienced a similar issue? Is there a workaround or specific setting that ensures prefabs respawn properly when the tile is reused?

Any guidance or tips would be greatly appreciated. Thanks in advance!