jumping on moving actors

FirstDanFirstDan Member Posts: 208
edited November -1 in Working with GS (Mac)
is this possible anyone?

thanks

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah of course. Have you tried it? What the problem you are having?
  • FirstDanFirstDan Member Posts: 208
    @tshirtbooth

    is this demo on gshelper.com?
  • FirstDanFirstDan Member Posts: 208
    @tenrdrmer

    I have an actor that is moving left and right, i have an actor that jumps on the moving actor, when i jump on the moving actor, the moving actor just falls down :).
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    FirstDan said:
    @tshirtbooth

    is this demo on gshelper.com?

    He said Email him. So I would guess not.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    FirstDan said:
    @tenrdrmer

    I have an actor that is moving left and right, i have an actor that jumps on the moving actor, when i jump on the moving actor, the moving actor just falls down :).

    Create a Self attribute (real) called int.Y The place a change and constrain attribute at the top of the actors behaviors window, Not inside a rule.

    Change attribute self.int.Y to self.position.y
    Constrain attribute self.position.y to self.int.Y
  • FirstDanFirstDan Member Posts: 208
    @tenrdrmer

    i put the behaviour in the jumping actor, in doing so I am unable to move the actor left and right and also jump,,

    when i put the behaviour on the moving actor , the moving actor stops moving?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    This is only for the Platform. And only for the y positions. It should not affect any movement in the x axis.
  • FirstDanFirstDan Member Posts: 208
    @tenrdrmer

    awesome i can now jump on them,

    but when i jump from underneath the moving actor, the moving actor shoots to the top, i want it to be static?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Did you put them in a rule? It should not move at all. You could try to replacing the change and constrain with one constrain

    Constrain self.motion.linearvelocity.y to 0 If you are putting it in a rule the constrain will only run when the rule conditions are meet. It would be best to keep it outside of a rule
Sign In or Register to comment.