Better Jump Movement

ratbumratbum Member Posts: 18
edited November -1 in Working with GS (Mac)
I have made an actor jump (in this case a ball) only when it is on a surface.

At the moment the actor goes straight up, whether you tell it to go right/left during the jump or not. I would like it to pay attention to left/right commands in the air.

How is this possible?

As Gamesalad's main website went down in the middle of me typing this, I cannot give you the link to the game, please click on my profile to see it.

Also the lift really doesn't work properly in the game, but I will put that in another post.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I think if you use accelerate instead of move, you can adjust the direction in mid air.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    here is a screen shot of what I do

    http://www.scitunes.com/images/jumpscreenshot.tiff

    this is used in my white blood cells game:

    http://gamesalad.com/game/play/8443

    feel free to try it out in my game and see if it moves the way you want to.
  • ratbumratbum Member Posts: 18
    Actually I am using acceleration, just like your picture, although it is not handled by a boolean attribute, the test of whether it is on the ground or not is handled differently.

    The problem I have is that if I turn 'run to completion' on you can't steer in in the jump, and if it's off it barely jumps at all.

    No idea how to fix this.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    set the acceleration really high 3000 even. Then set the max speed to something like 400. So it speeds up really quickly but then when it hits 400 it keeps going 400 until gravity brings you down. Just so you know, I spent many hours coming up with different ground detection solutions and the one I show in my screen shots is the only one that allowed my character to jump CONSISTENTLY. Other methods listed in the wiki work most of the time but sometimes it would not detect that you are touching the ground - no explanation.
  • ratbumratbum Member Posts: 18
    Thanks, just wondering if it's important or not to have the jump boolean attribute connected to the game, rather than the actor?
Sign In or Register to comment.