How to climb stairs easily

2

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

3,476 visits, 5,320 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 11 Nov, 2014. Last updated 19 Feb, 2019

Hello community!

I needed a ladder in my game and researched a lot and found none easy to do. I always try to look for simple ways using the resources of Construct 2 to solve my problems. The alternatives that I thought were difficult and required some calculations of the ladder height in relation to the dimensions of the 'char_soul'.

Studying some solutions I created this simple soluction to available to anyone interested.

Just use 'platform' behavior for your 'char_soul'. Use 'solid' for floor behavior and 'jump thru' for stairs. The best: no need to change any of the default control setup.

The variable to climb the ladder is global, because for some reason it did not work as the instance variable.

Suggestion:

If you do not want your 'char_soul' to move left or right, set 'NO' to Default Control Platform.

To position the 'char_soul' in the middle of the ladder, use the "Soul > Stairs.X + Stairs.Width / 2" line for the character of your game, not in their 'char_soul'.

Hope you enjoy.

Bye!

.CAPX
  • 0 Comments

Want to leave a comment? Login or Register an account!