Monday, 23 November 2015
GameSalad Platformer test
First I applied gravity to my Player, with the direction set to 270 degrees (down) and acceleration at 300, I also added a collide so it would stop falling once it hit the ground. In order to have it only bounce a little, the grounds bounciness is set to 0 and the actor at 0.3. In order to get the player to jump, I created a new attribute, a boolean, called "Is On Ground," then added a rule and told it that when both the space bar is pressed and "Is On Ground," is true it should change velocity to 200 and move 90 degrees (up). Finally I made the "Check for Ground" which consisted of the collide behaviour, so it collides with the "Ground" actor and means that the "Is On Ground" attribute is true. The next step is to add movement, but I've been having trouble allowing the actor to move left and right while on the ground but not in the air, yet still allowing it to jump and move realistically.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment