Moving floor for top down

Hey there I just want to know if there is a way to make the floor under the player move and not the player.

I’m trying to make a top down shooter where enemies will come towards the player and make it look like the player is moving.

The best example I can think to give is the old school pteri attack from neopets. Here is a video of what I mean.

I’d like to use 3D assets tho and it still be top down like that.

The player can move around but the floor is the thing moving.

Thanks a lot.

1 Like

I see what you mean…well I guess the player can only move in the Y and the “map” with everything attached is moving in the X.

You will likely need to make a separate camera actor that you can swap to in your level BP at begin play. This way the camera is not parented to the player and once you get it how you want it, this will essentially be your “screen”.

1 Like

If you watch the video a bit longer the player can move both x and y.

Also how would I go about making the map move and not run out of map but like repeat so it’s infinite. Kinda like a treadmill.

Thanks :blush: I appreciate it. Also yeah I did put a camera above and made that my camera on begin play. I just don’t know how to make the level move and repeat xD.

Some ideas:

  • divide the floor into grids that you can prebuild and spawn/place off camera as needed. Have them move constantly in your desired direction. Google wave function for procedural terrain, this might help.
  • if pawn has to have contact with the floor:
  1. Constantly move pawn opposite direction of the floor.
  2. Have the tile with no collision and the pawn rests over an invisible floor. Animation should give the illussion that it is moving
1 Like

Well here is the thing, its a 3d engijne. I’m thinking make the map in Blender or another 3D program…import UE…it will set some collisions (but you can do that better later), and move that OBJ file at game start.