Gamesalad: Elevators and Moving Platforms



In this tutorial I’ll show you how to create vertical elevators and horizontal moving platforms in Gamesalad. You’ll be able to move and jump on these platforms just like you would any other platform in a typical side scroller game. Also when you release the movement key(s) the player will continue to ride on the platforms and not side off. The full video tutorial and source Gamesalad files are available below. If you have any questions, feel free to ask.

The source Gamesalad files can be downloaded here:

30 comments


  • Regiv

    i download this file
    using Win8 GS
    and the Player does move left or right when is up on BLue platform. Why?

    March 17, 2014
    • Do you mean “doesn’t move left or right”? Because the player IS supposed to be able to move on them.

      March 18, 2014
  • ddaazz85

    Yes player doesn’t move on blue platform.. i’m using the windows version (win 7)

    Thanks you for these tutorials by the way, they are very helpful

    March 22, 2014
    • Hi, I’ve opened that project on Windows 7 and am not able to move the actor on the blue platforms either. There must be some difference between the way the behaviors work between the Mac and Windows versions. I’m not sure what the solution is at the moment, but if I find one I’ll post here. :(

      March 23, 2014
  • Regiv

    Well? you fix it for window 7/8? what behaviors have you used for your character? accelerate?self.motion velocity or interpolate? when move left right and jump.?

    March 25, 2014
  • thank’s sir

    April 19, 2014
    • You’re welcome.

      April 24, 2014
  • sir i can’t jump while move right or left when on evalator

    June 4, 2014
  • solved, i saw your tutorial danger droid. GRACIAS

    June 5, 2014
  • akash

    hi i am working on windows 7, i have a problem in both horizontal and vertical elevators,

    i cant stick my player’s position on vertical elevator,when elevator goes down from its top position the player remains remains in air then due to gravity it comes back on it, how to keep constrain to platform

    in horizontal platform ,as my player jumps on it, it started to go down leaving its x axis,in a to and fro motion,how to prevent downfall of platform

    October 6, 2014
    • I’m afraid there is always a little ‘hop’ on the vertical elevator before gravity takes over and drops the player back onto it. You’d have to come up with another, different method to avoid this.

      For the Horizontal platform it sounds like you have not turned off ‘moveable’ under the physics settings of the platform.

      October 15, 2014
  • Charlotte

    Hi, My character just keeps falling through the platform can you please tell me how I can fix this thanks

    November 9, 2014
    • Hi Charlotte, sounds like you have an error in your behaviors, I’d download the source files provided and compare your behaviors to mine to find the error(s).

      November 12, 2014
    • ChumCreature

      Hey guys, I had this same problem too. For some reason I when I was messing around with the Density on the Platform it stopping falling through. I changed it from 1 to 3.

      However when your head hits the platform it acts like you’re on the top.

      November 18, 2014
  • julirn

    Hi jamie
    thanks for your tuto
    i have an incompatibility with this tuto and your recipe 004
    when player is on plateforme i couldn’t jump
    any idea?

    December 9, 2014
  • julirn

    Fixed my myself sorryy for that
    Thanks for your fantastic tutorials

    December 9, 2014
    • Glad you got it worked out! :)

      December 10, 2014
  • Justin

    Hey Jamie,
    Thanks for doing what you do! I have a vertical elevator programmed. It works as its supposed to, up and down, stopping and starting as it should, however, when my player actor jumps on it, he gets stuck in this seemingly endless bounce? My player actor rises and lowers with the elevator, but he bounces. I have set both the player actor and the vertical elevator’s bounciness to 0 and it’s still happening. Any thoughts on what would cause this? Thanks again!

    February 6, 2015
    • Hi Justin, it’s not uncommon to get a little bounce when the elevator starts to drop under your player, as the player has to fall back onto the platform during the downward motion. If you are experiencing something else, maybe you have a Bouciness value applied to player and elevator? If that is the case try making them BOTH zero.

      February 9, 2015
  • Joel

    Hi Jamie,
    Awesome tutorial, thank you. I Have the vertical elevator set up. I can jump onto it, and my player rides it up and down, but once on it, the player cant move left or right, or jump…
    I have been stuck on this for hours now. What can I do?
    Thanks for your time!

    March 3, 2015
    • Hi Joel, usually vertical elevator don’t have that problem I wonder if there is a behavior somewhere forcing your player to not move. Have you downloaded and tried the source files I provide with the tutorial? Try those and see if it works any better for you.

      March 3, 2015
  • Joel

    Hey Jamie,
    I ended up fixing it by adding the same movement/jump rules to my Hero actor as what I had previously set up for the regular platform, I just changed it to suit the vertical elevator. Thanks for taking the time to reply, and thanks again for the tutorials! You are the sole reason I am close to finishing my first app!

    March 4, 2015
  • info@beartarot.com

    Jamie,

    Most of the tutorial is working, but the vertical elevators are having serious issues.

    I’ve added the behaviors and it LOOKS like it’s working the first time, the player goes down the elevator and I can jump. But, as the elevator hits it’s bottom area and starts back up, the player drops a few pixels and then it doesn’t work. He goes down a little bit more the first time and then jump stops working and it sinks down deeper.

    Any ideas?

    May 28, 2015
    • Hi, I’m not sure exactly why that would happen, maybe something to do with your Physics settings. Density, Friction, Etc. I suggest downloading my working source files and comparing those to yours to try and find the bug(s).

      June 4, 2015
  • negou seid

    I am trying to work on endless runner with an elevator component. Is it possible to have a moving platform up and down and have the player continue running across? Every time i try once my player hits the elevator, it just shakes in place and then completely stops. please help, thanks in advance

    May 28, 2015
    • Hi Negou, I’m sure it’s possible but it is something I’d have to experiment with to get working correctly I’m sure. Have you compared your behaviors for the elevator to my working source files? If not try that and see if you can find out why it’s not working for you.

      June 4, 2015
  • Lorenzo

    Thank you for this tutorial. I’m making a project using your tutorials so in my report I’m going to cite your page and your name.

    Nice tutorials.

    Keep the good vibe. Cheers.

    June 25, 2015
    • Hi Lorenzo, thanks for the kind words and support. Good luck with your project! :)

      July 7, 2015
  • Hi, I’ve been watching your tutorials for the plataformer and I’m pretty happy with the results so far but I’m having a problem with the elevators, specifically at the vertical one, I can move left and right but I can’t jump, I’ve downloaded your files and compared with mine but still having the same problem, I hope you can answer, thanks anyway for the awesome tutorials!

    April 7, 2016
    • Hi Fernando, when you download my files does the jumping on the elevator work for you in my file (before you make any edits)?

      September 8, 2016

Leave a comment


Name*

Email(will not be published)*

Website

Your comment*

Submit Comment

© Copyright Mostly Creative - Theme by Pexeto