I’m very very new at Unreal. I would love some help if possible.
I’m trying to make a trigger volume once triggered, turn on a floating platform. The platform is only on for 5 seconds (per the timeline), then turns off. The player will then be able to trigger the platform again from the trigger volume.
Currently nothing really works well. The platform turns on, but doesn’t follow the timeline. Also, only the mesh is turning off via the toggle visibility. In this situation, I need both the mesh and the collision to turn off.
I guess I’m trying to make something like in super mario.
Player touches the trigger
Platforms appear for a peroid of time
After the timer, the platforms dissapear
Player then can reset the timer
I have something in a current project that should help you with this.
What you could do is in the level BP set up the trigger to make the platform show.
Use the “do once” node I believe it is, after the “begin overlap” and toggle visibility for the platform to show, set a delay for a few seconds and then toggle visibility again to hide the platform. And the output from the last visibility node, connect it to the “reset” on the “do once” node so then the player can activate the platform again. Then try deactivating the collision for the platform.
Frosty, to get the effect you want, you need to use the Scale3D node.
Also, to make things much easier, you need a BP for the tile, and a BP for the trigger. Once you have them setup, you can just layout the level with no more coding.
Come back here if you’re interested.
( Scale 3D if you want the plaforms to appear with animaton, visibility if you just want the change to be sudden )
When you put the tiles in the level, need to give them an actor tag. It can be anything, like ‘bridge’ or ‘stairs’. And you set the parameter on the corresponding switch to the same ( ‘bridge’ etc ). That way, the switch knows which tiles it’s operating.
You see here, I’ve put the trigger in front of those tiles and I told it the tag to look for ( bridge ), and how long to tell the tiles to live ( 3 seconds ).
Then you just hit play
So you can see, once you code a single tile and trigger correctly, you can now setup a whole level without any other code!
No worries dude, thanks for getting back to me and giving me some more help!
I think my issue is, I can’t find the event “show” in my trigger. I can find it with context sensitive turned off, but I can’t connect the array element, as the trigger doesn’t reference the platform (bridge) pieces.