Ramps

horizontal block

Create a new object blockH, set the sprite to the horizontal block and make it solid. Also make the normal block the parent (so it does the same landing actions automatically).

Character going left

Go into the character's <Left> event and add:

  • Else 
  • Check Empty: (-4,-8), relative
    is there something solid (a block) just a bit up and to the left (ie a ramp) to "slide" up to?

if so, do the following... inside start & end blocks...

    • Jump to Position: (-4,-8), relative
    • Move to Contact: use the landing action to move it down towards the contact position
      direction = 270, maximum =  8, against solid object

character going right

Go into the character's <Right> event and add:

  • Else
  • Check Empty: (4,-8), relative
    is there something solid (a block) just a bit up and to the right (ie a ramp) to "slide" up to?

If so, do the following - inside Start & End blocks, add the same actions as before, but the x values are "4" instead of "-4".

  • Jump to Position: (4,-8), relative
  • Move to Contact: same as before
    direction=270, maximum=8, solid objects

Room

You need to create a testing ramp in your room. Your ramp needs to have about 6-8 steps/levels. It works best if you have 2 squares per "step" so it'll look like it's gliding. Start by adding the whole blocks with 2 spaces between; then place the horizontal blocks between for the ramp

Test out your room and make sure it works.