Hey again! I'm trying to insert gravity into a sphere movement test (which is also failing miserably, by the way), and when I say:
the sphere starts floating upwards. But if instead, I say:
the sphere shoots upwards extremely quickly. I want it to stay down, not go up! Help!
In addition, I have other problems...
The line: "If EntityCollided(player\sphere, 1) > 0" doesn't seem to work.
Also, the following jump function doesn't work.
After the ball touches the ground from jumping, it starts floating upwards, and I think this might have to do with the first problem.
Help me... I'm a mess!
player\yinertia# = player\yinertia# - gravity#
the sphere starts floating upwards. But if instead, I say:
player\yinertia# = player\yinertia# + gravity#
the sphere shoots upwards extremely quickly. I want it to stay down, not go up! Help!
In addition, I have other problems...
The line: "If EntityCollided(player\sphere, 1) > 0" doesn't seem to work.
Also, the following jump function doesn't work.
If player\jumping = 1 player\yinertia# = player\yinertia# + player\jump# player\jump# = player\jump# - .01 If player\yinertia# = 0 player\jumping = 0 EndIf EndIf
After the ball touches the ground from jumping, it starts floating upwards, and I think this might have to do with the first problem.
Help me... I'm a mess!