How to make gravity that works if you move too
Hey guys,
in a new game I'm working on, it is similar to the game Red Ball. I have arrows that lead you in the direction you want with up as a jump. I have under all the arrows to push down (accelerate) to create a gravity, but when you press up and right, it makes more of a triangular jump than a smooth circular jump. Also, if I fall off a platform and still hold on to the arrows, I don't fall immediately like in Red Ball, but I slowly fall in the direction I am pressing. This gravity is stopping me from releasing the app. Without this, the game looks very amateur and that's not good. If any of you know how to make this work, that would be awesome. It seems on Youtube, no one made a video about this; just to fall.
Thanks,
LaDuester
in a new game I'm working on, it is similar to the game Red Ball. I have arrows that lead you in the direction you want with up as a jump. I have under all the arrows to push down (accelerate) to create a gravity, but when you press up and right, it makes more of a triangular jump than a smooth circular jump. Also, if I fall off a platform and still hold on to the arrows, I don't fall immediately like in Red Ball, but I slowly fall in the direction I am pressing. This gravity is stopping me from releasing the app. Without this, the game looks very amateur and that's not good. If any of you know how to make this work, that would be awesome. It seems on Youtube, no one made a video about this; just to fall.
Thanks,
LaDuester
Answers
and for up change attribute self.Motion.Linear Velocity.Y to 300 For Left instead of 300 for the X, have -300.
Make a true/false scenario where if.game.attribute.up is true = accelerate up
otherwise accelerate down