How can I stop my character from changing speed?

JamesNobleJamesNoble Member Posts: 19
edited November -1 in Working with GS (Mac)
When my main character collides with another character that is moveable, it changes speed dramatically. I need to stop this from happening - I need to give it a fixed speed... how can I do this? I hope I've given you enough details.

Thank you!

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    I have a magnitude demo on my wall in the games section that demonstrates how to keep objects moving at a steady rate of speed.

    Feel free to dig around in it, but it is a little math heavy.
  • UtopianGamesUtopianGames Member Posts: 5,692
    You can apply a Max speed setting inside the actor under...Motion..Max Speed...Apply Max Speed (check box).

    That should do the trick.

    Darren.
  • JamesNobleJamesNoble Member Posts: 19
    utopiangames said:
    You can apply a Max speed setting inside the actor under...Motion..Max Speed...Apply Max Speed (check box).

    That should do the trick.

    Darren.

    Thanks, that helped in stopping my character from going too fast, but how do I stop it from going too slow?

    Thanks
  • firemaplegamesfiremaplegames Member Posts: 3,211
    The too slow fix is in my magnitude demo.
  • JamesNobleJamesNoble Member Posts: 19
    firemaplegames said:
    The too slow fix is in my magnitude demo.

    I had a look at your demo thanks, but I don't know where the rule is that makes sure the speed doesn't change. I assume it's in the "player" actor as well as the "target" actors. I think it's the rule that states:
    if the attribute self.velocity is less than self.speed
    accelerate with direction of self.currentaov at a rate of 1000
    In order to do that, you've made three new attributes within that actor: velocity, speed, currentaov. I don't know how to make them link to what they are supposed to though.
    I'm sorry if I don't make sense, or if I am looking at the wrong rule altogether -- I am relatively new to GameSalad.

    Thank you for your time!
  • JamesNobleJamesNoble Member Posts: 19
    firemaplegames said:
    The too slow fix is in my magnitude demo.

    Thanks FireMapleGames, your demo helped me solve the issue! :)
Sign In or Register to comment.