Creating two attributes for jumping movement?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey, I use a button to get my character jumping, now I want another rule that says when the character collides with an object, change self.motionY from 200 to 300 for example.

It is just that I want my character to collect an object, and he has to get another one to jump higher than usual to get the other object.

Please,I really need help :/

Comments

  • wormilwormil Member Posts: 127
    I'm not certain what you are asking for here, please clarify.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey I have a button to control the jump movement of my character. And I want to change the height of jumping when he collides with an object.
  • wormilwormil Member Posts: 127
    on collision event
    change attribute
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay that will not work waht you are saying!

    I have a button and I said: when button is pressed change attribute game.jump to true!

    Then in the actor I have a rule saying: when collapse with ground and attribute game.jump is true, change self.motion.linearVelocityY to 300.

    Now I want these rule to be changed when my actor collides with an special object!
Sign In or Register to comment.