falling correctly after jumping

slumdog10slumdog10 Member Posts: 3
edited September 2012 in Working with GS (Mac)
Hi , I am new to gamesalad and also to game creation. i am making a platform game and I have got my player to move left and also right , i have made my player only able to jump when he is touching an actor with the stood on tag. i have the jump working by having him move in a 90 direction within a timer for 0.5 seconds. My player can move left and right and jump left and right but when he is coming back down from the jump he moves directly to left or right when they are pressed.

My question is... How can I have my player move left and right when falling from a jump or a ledge and not affect the speed he falls at?

Thanks

PS.. love this software.. Oh and im on windows latest version.

Answers

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you can set your left and right movements based off just velocity x
  • slumdog10slumdog10 Member Posts: 3
    how do you mean using velocity x . i have game attributes ( left, right, up, down, and jump) then i have controls so when you touch inside left arrow it changes game.left attribute to left instead of the none it normally says. then my player will move 180 degrees at speed of 300 when attribute game.left is left. could you let me know how i can use the velocity x way please
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    yes instead of move use change attribute and and change the self.motion.linearvelocity.x to self.motion.linearvelocity.x + 50 or something like that. The point is the move behavior calculates and x and y velocity and changes those automatically but you don't want to change the y with your move left and right rules. you want to just change the x and let gravity affect the y
Sign In or Register to comment.