Explaining a set of expressions

before @RThurman answered my question on how to make a rub technique so the faster i rub an actor the faster my bike goes and this was his answer

That's a cool idea! Here would be one way to implement a "rub" speed:

When MouseDown
--Timer (every 0 seconds)
----Change Attribute: self.rubSpeed To (self.rubSpeed *.96)+(abs(game.Mouse.Position.X-self.oldX )/(self.Time-self.oldTime )*.04)
----Change Attribute: self.averageRubSpeed To: (self.averageRubSpeed +(self.rubSpeed/9))*(.9)
----Change Attribute: self.oldTime To: self.Time
----Change Attribute: self.oldX To: game.Mouse.Position.X

Is there anyway to explain what all the numbers and stuff mean so I could alter it for different settings and make the bike go faster with fewer rubs so i can make upgrades ect ?

i would like to know what everything means rather than just put it in my game ???

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Perhaps these will help...
  • JordeyyJordeyy Member Posts: 409
    @Braydon_SFX thanks for that bro ive saved them all but what does the (self.rubSpeed *.96 -- and (self.Time-self.oldTime )*.04) and also (self.rubSpeed/9))*(.9)
    like what does the numbers mean cause instead of just putting it in my game i want to understand how my game works :) thanks in advance @Braydon_SFX
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Have you watched video tutorials? ;)
  • JordeyyJordeyy Member Posts: 409
    @Braydon_SFX ino it helps to watch the videos so is it possible to tell me the videos on gshelper that will help with my game cause i havnt got enough time to watch everyone it would take weeks
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    It might take awhile, but it will help you understand how GS works.
  • JordeyyJordeyy Member Posts: 409
    @Braydon_SFX ino bro but i cant sit and watch every video i would probarly forget most of it thats why i would rather watch the videos that would help with my game and then watch a few videos more every now and again
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    You might be able to watch all of the videos prior to getting all of the answer mate. Not trying to be discouraging, but that's what you need to do. Explore, do some tweaking inside projects. Watch the tutorials and follow along, that's a fantastic way to learn.
  • JordeyyJordeyy Member Posts: 409
    @Braydon_SFX would it be hard to learn what those numbers mean and be able to just put them in my game without asking anyone ?
  • JordeyyJordeyy Member Posts: 409
Sign In or Register to comment.