Jump to content
  • Advertisement
Sign in to follow this  
whitelyt

Stopping players from moving backwards in a Side-Scroller

This topic is 2137 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What methods can I use to stop players from moving backwards in a Side Scrolling game while still constraining to the theme of the game and keeping the player immersed. The theme of the game is a side-scrolling 2D racing game.

Share this post


Link to post
Share on other sites
Advertisement

There are plenty of games where it simply isn't possible to move backwards.  It doesn't impact the theme, and doesn't seem to disrupt immersion.  Simple but effective. smile.png

 

Is this a jump-and-run (i.e. "platformer") type of game, one where you fly an air or space-craft, or something different?  Side scrolling can describe a couple of different types of game-play.

 

Other than outright disallowing backwards movement you're really stuck with just trying to discourage it, but if you go with that sort of method at least some players would undoubtedly try it out.

Share this post


Link to post
Share on other sites

You could use the Super Mario Bros. approach, in which the camera is prevented from scrolling backwards (though the player can still move backwards) and the player is not able to pass the edge of the screen.

Share this post


Link to post
Share on other sites

It is a side scrolling car racing game, all the vehicles must overcome certain types of terrain using the momentum they have gained but none of them can jump so there are no platforms. Thanks for the speedy reply by the way. 

Share this post


Link to post
Share on other sites

A common mechanism in infinite runner type games is to put something nasty behind the player. Perhaps a giant steamroller is chasing him - not especially fast, but fast enough to discourage backtracking or standing around.

Share this post


Link to post
Share on other sites
In a racing game you should probably allow vehicles to move backwards *a little*, for example to have the appropriate running start before a jump. Only racing backwards for a significant length is "wrong", and it can be easily detected as crossing sufficiently distant checkpoints in the wrong direction, going back more than L pixels from the maximum x coordinate, or the equivalent. If this happens, you can simply stop scrolling and make the player stop at the back edge of the screen, show a "wrong direction" warning message, or even disqualify him if the infraction is serious.

Share this post


Link to post
Share on other sites

The vehicles are able to move backwards for a certain distance before colliding with a physics body that stops them from moving further. This will "jerk" the player out from the immersive experience though. 

Edited by whitelyt

Share this post


Link to post
Share on other sites
 

The vehicles are able to move backwards for a certain distance before colliding with a physics body that stops them from moving further. This will "jerk" the player out from the immersive experience though. 

You can fade to black and restart the level automatically to make the player race again, without allowing him to do silly things for long (or at all). Players can be expected to learn that they cannot win the race if they go back.

Share this post


Link to post
Share on other sites

maybe just making the backward motion significantly slower as it goes more to the wrong side, if it goes out of view it might even come back by itself. At least not allowing the view to move backward much is a good idea.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!