'Velocity' expression not keeping updated correctly?

WingsOfChaosWingsOfChaos Member Posts: 1
edited November -1 in Working with GS (Mac)
Hi there.

I'd like to know if anyone has come across any issues with expressions used with velocity.

Basically, I'm trying to have an actors velocity when moving up and down, be based
marginally on an offset from the center of the scene. So the lower it is in the scene,
the faster it would move, and the higher it is in the scene the faster it moves.
So in the velocity's expression I'm keeping track of the offset from the center of the scene,
and subtracting that from a base value.
However, the issue arises that for some reason, the actor will move down faster than it
moves upward (at the same height. It should be moving at the same speed at such a
point but it isn't).
Also I'll move the actor up to the top, then press down to move it downwards, and it will
start slowing down, almost to a halt. But if I press down again it will suddenly have more
velocity than it should, when it was suppose to be based upon it's y position?
And sometimes if it is still moving at a good speed when I stop, after pressing down a
second time it's at a standstill.

I have the same code for both the up and down velocity-wise, and all physics set to 0,
though I'm not sure they would have been affecting it in the first place when I was manually
moving it. Also the velocity sometimes changes when moving in the same direction just by
taking your hand off up/down to move it, and pressing it again.

I'd really appreciate if anyone might have any information about this, am I missing something,
or is this a bug? I'm not sure?
(If you need more detail or an elaboration on any part of my explanation let me know and
I'll do my best).
Sign In or Register to comment.