Best solution for a wall that pushes the player to the left

PS_VITA

Active member
Edit: Mods, sorry accidentally put this in general,  I meant to post this in the help openbor forum

I'm trying to come up with a wall that takes up the entire height of the screen and as the level scrolls to the left the wall moves to the left and if players touch it, they move left.

I tried making the wall an obstacle but for whatever reason it's ignoring my idea and the player is able to bypass it.

I tried making the wall have an attack box that hits the player but that would not work because the player has a few i frames and this could potentially bring me some other issues down the line.

Any hints are appreciated.
 
Hmmm... are you trying to create level where player is forced to run or walk to the left but if they stay still, wall will push them instead? or at least just a level where wall is pushing players to the left?
 
Bloodbane said:
Hmmm... are you trying to create level where player is forced to run or walk to the left but if they stay still, wall will push them instead? or at least just a level where wall is pushing players to the left?

Bloodbane  just a level where wall is pushing players to the left?
 
Ah, that should be simpler to create  8)

Is there a limit to how far the wall pushes players or will the wall crush players on left edge?
 
Bloodbane said:
Ah, that should be simpler to create  8)

Is there a limit to how far the wall pushes players or will the wall crush players on left edge?
Bloodbane
Say the wall starts at the end of the stage at X 6000

And the player must back track to x 2500 and the wall will stop like at x 3200.  So no, it wouldn't crush the players,  in fact the wall will just crumble away and be destroyed at x 3200
 
Coding this pushing wall was simple  8) but showing it properly require extra work  ::).

I decided to pack the pushing wall together with an example level on how to spawn the wall, here's the link: Pushing Wall pack.

This wall will immediately pushes players, obstacles, NPCs and enemies to the left when it is spawned. It will stop when it's x reaches 3200 and blinks away. Although in trap2 level, it's spawned at x = 6000, it could be spawned farther or closer and works the same.

While coding this, I realized that PS Vita hasn't specified the wall's width which is required in creating the wall. But for showing that the wall works, I picked a width similar to width of spike trap in trap room from D&D : Rise of Warduke.
 
Bloodbane said:
Coding this pushing wall was simple  8) but showing it properly require extra work  ::).

I decided to pack the pushing wall together with an example level on how to spawn the wall, here's the link: Pushing Wall pack.

This wall will immediately pushes players, obstacles, NPCs and enemies to the left when it is spawned. It will stop when it's x reaches 3200 and blinks away. Although in trap2 level, it's spawned at x = 6000, it could be spawned farther or closer and works the same.

While coding this, I realized that PS Vita hasn't specified the wall's width which is required in creating the wall. But for showing that the wall works, I picked a width similar to width of spike trap in trap room from D&D : Rise of Warduke.


Excellent!!
I'll be sure to try it out soon

EDIT* Bloodbane it worked really nice -
I had to make some adjustments to the over all height - but this is a really nice script - it reminds me of the conveyor belts
found in double dragon.

Thank again mate!
 
Back
Top Bottom