How do I protect like MGS

Get help using Construct 2

Post » Tue Jul 05, 2016 1:03 pm

Hello guys,

Today i've a question about the gameplay...

I would like to make Something like metal gear solid or fps like games ... This thing was when the character was near a wall if you push a button like "space", "ctrl" etc ... the player "paste" to the wall and can move along without take damage and you need to push again for go away from the wall i hope you understand the way i would it work and its for a top down view game.

Ty guys =)
B
21
S
9
G
3
Posts: 70
Reputation: 2,722

Post » Tue Jul 05, 2016 7:33 pm

I saw your post and thought it would be fun to try and make a basic system for attaching to walls and I came up with one that only uses around 10 events if you don't count basic player movement and 4 instance variables.

The way it works is wherever there is a wall in your level Add a tiny trigger area object to it, and in game press cover activation button and I recommend you make a layer for triggers so you can hide them when you're designing the level each trigger area has a variable called side which can be 1 or 2, 1 is for any wall that the player will attach to from the top or bottom of, two is any wall that the player will attach either from left or right side of.

This system doesn't pin the player to the wall what it does is it limits their movement relative to the walls position and won't let you leave the wall until you either leave the trigger area on the wall or press the cover activation button again, and if you want to set up a system so your player can't take damage in cover there's a built-in bool called attached to wall, that you can put in your take damage condition.


This is a base to build off of hope it helps, and good luck with your project! :D
The example: https://drive.google.com/open?id=0BycQa ... XdVdlJVM1E
If you have any questions just send me a PM
B
12
S
8
G
3
Posts: 33
Reputation: 3,483


Return to How do I....?

Who is online

Users browsing this forum: Armench, Artcadev, blackhornet, farsen, Google [Bot], mariusvm, PROxMTswatTR and 16 guests