How to keep actor falling (gravity) while moving left or right?
Muphins
Member Posts: 7
Hello community.
I have a problem...which is trying to get my stick figure to fall at a speed of 1000 WHILE moving left or right in the air. However, the actor refuses to comply, and glides at a very slow speed instead.
Not to worry, I at least have the actor falling the way I want him to, after he jumps and doesn't move in anywhere whilst in the air.
Here is my "move left" rule, attempting to keep the actor falling:
------------------------------------------------
If game.move left is True (when you click the move left actor, game.move left is set to true, "else" set to false)
Do>
move in direction: 180 (Relative to Scene in an Additive way)
At a speed of 300
accelerate in direction: 270 (Relative to Scene)
with acceleration: 1000
(other needed boolean attributes unrelated to gravity...)
-----------------------------------------------
Clearly, I have something wrong here...
On top of that, I probably need some angle attributes to add? Which confuse me to a great extent as is?
Something like...
if vectorToAngle is blah blah blah then do blah blah blah...
Thanks for any help.
I have a problem...which is trying to get my stick figure to fall at a speed of 1000 WHILE moving left or right in the air. However, the actor refuses to comply, and glides at a very slow speed instead.
Not to worry, I at least have the actor falling the way I want him to, after he jumps and doesn't move in anywhere whilst in the air.
Here is my "move left" rule, attempting to keep the actor falling:
------------------------------------------------
If game.move left is True (when you click the move left actor, game.move left is set to true, "else" set to false)
Do>
move in direction: 180 (Relative to Scene in an Additive way)
At a speed of 300
accelerate in direction: 270 (Relative to Scene)
with acceleration: 1000
(other needed boolean attributes unrelated to gravity...)
-----------------------------------------------
Clearly, I have something wrong here...
On top of that, I probably need some angle attributes to add? Which confuse me to a great extent as is?
Something like...
if vectorToAngle is blah blah blah then do blah blah blah...
Thanks for any help.
Comments
change self.motion.linear velocity.X to 300 for right
and
change self.motion.linear velocity.X to -300 for left
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮