View Single Post
  #8  
Old 09-02-2003, 11:24 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by jake13jake
lol, inexplicably? if you played with the script it might be explicable.
No amount of playing with code will change a fundamental physical fact.

Quote:
I understand that I am changing the direction of the player. If I werent changing the direction he would be going through the wall
You misunderstand. The code that is intended to slow the player also changes his direction of movement. I'm not talking about the parts where he bounces off walls, I'm talking merely about the section that applies friction.

Quote:
Why couldn't stefan have made this easier?
It's easy enough already, assuming you have the sense not to disregard an area of maths that holds the key to your success.

Oh, and non-prefixed variables are volatile. If you require a variable to retain its value between frames, prefix it with a 'this'.
__________________
Reply With Quote