How to change speed of walking when using change attribute method?

Dylan84Dylan84 Member Posts: 12

Thanks!

Comments

  • NNterprisesNNterprises Member, PRO Posts: 387

    "Change speed of walking" can be done many different ways. But if you desire to use a change attribute method:

    Lets say you have Self (actor) attribute LinearVelocity.X as 100 to start (100 pixels per second to the right), and you want to make it keep getting faster...

    You can do it by timer or instance...

    By timer:
    Timer->Every x seconds-> change attribute self.linearvelocity.x to self.linearvelocity.x + z

    Therefore every x seconds, the speed will increase by z

    By instance:
    Rule
    If attribute = x -> change attribute self.linearvelocity.x to self.linearvelocity.x + z OR change attribute self.linearvelocity.x to Q

    This is saying if whatever attribute you choose is X (like say Level is 7, or position is 300..) you can either increase speed like before, or just change speed to Q.

    There's billions of different ways to do things it's all about what you need it for

  • KevinCrossKevinCross London, UKMember Posts: 1,894

    @NNterprises said:
    There's billions of different ways to do things

    Give or take a few... :smile:

Sign In or Register to comment.