trying to make a p;atform

im trying to make a platform delay for 5 seconds then start up move to point b stop for 5 seconds then start again can someone help me please here what i have so far

Use Set timer by event.

Made it a bit more friendly:
platform2



Now just type the states (or make them an enum) in the order they should cycle:


This will loop for ever:
image


Edit: moved some nodes around a bit…
Edit again…: made it a lot more friendly.

Original post

Hope this makes sense:
platform

As with anything Unreal Engine there are probably tons of ways to do this. Here is how I did it.

  1. Make a Blueprint - Actor - call it “MovingPlatform”

2.Inside add a cube, scale it to make it look like a platform (you may have to go head and drag in the bp to get proportions right compared to the mannequin(s)), make sure it is moveable, and set to block your pawn or character.

Now in the Event Graph.

  1. Make a boolean called “Pathway1?”
  2. Add two new custom events. “OpenGate” and “CloseGate”

Follow the diagram below.

Height is determined by <= or >= for min and max height.
Speed is determined by the add and subtract nodes and Vinterp nodes.

Hope this helps.

Hardcode a bunch of local vectors directly into the timeline and do the whole thing with 3 nodes:

A.k.a. The Designer-Unfriendly Way.

3 Likes

i think i have it all except state and timer set handle, i couldn’t figure out what variable those were. Thank you so much you’ve been a huge help so far.

The state is a simple Name. You can look up the type by its color.

For the timer handle just drag from the timer node and create new variable. It is not really needed in this case, but it can be use to pause/interrupt the timer or get the countdown like i did (but did not share).

1 Like