• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

gravity

  1. S

    Physics Inaccurate, looking for conformation.

    Hey all, I'm building a simple real-world physics simulator and I'm running into a bit of confusion. Hoping somebody could confirm my findings or explain to me why I'm an idiot. So, a bit of physics lead-up. Force = mass * acceleration If you have an acceleration (such as gravity) acting on...
  2. Q

    Legacy GM Flipping gravity

    Hello, Currently working on a rhythm platformer game (long story), And I want to add a feature that allows the player to flip their own gravity. At the moment, gravity does flip, but just before the player would collide with the ground/ceiling, they hover slightly above the ground for a few...
  3. P

    Legacy GM [Unsolved] Room Gravity and my trouble with it

    This time I decide to upload a simple project I made for explain the situation and my doubt about the working of the gravity in physic world box2d. Basically I just made a room, a floor and then create two object (cloned) and another one, a "tire". The object is a stick of 32*256, at the object...
  4. M

    (Warning, I'm a noob) Problem with object movement (game maker 8.1)

    2 things: 1) When I set vertical speed to 0 (to prevent my character to fall off the screen after jumping), I can't move horizontally until I jump, any way to be able to fix this? 2) Is there any way to limit for how much time I can jump?
  5. S

    Delta Time with Gravity

    I'm trying to make a 2D platformer engine that has support for delta time. https://www.niksula.hut.fi/~hkankaan/Homepages/gravity.html Everyone says this method is the best way to get gravity working with delta time. It's basically coded like this: velocity = velocity + gravity*delta_time/2...
  6. A

    Platform Player Sinking into Floor [SOLVED]

    I am trying to teach high school students how to use Game Maker. We are using Game Maker for Mac Lite (I know, but we have MacBooks and free is all we can afford). We are following a tutorial to set up the gravity, and half the students' games work fine, but in the other half the player sinks...
  7. R

    Android Gravity changing with angle

    Hey! I have a problem with angle which should change gravity and angle - you know that spinning type of games where block falls down when for example we put room upside down. I use this for changing gravity and angle(basically thats full code xD + This in create in player object. The problem...
  8. D

    Remove gravity on physics enabled object

    Hi, In a physics world with the gravity having a value, is it possible to remove the gravity from one particular object? I have tried ticking the kinematic box but my understanding of it must be wrong. Also tried playing with the physics_mass_properties but can't get that working. Basically...
  9. M

    Legacy GM Donkey Kong-Style Gravity System

    As the title says, I need to create a Donkey Kong style gravity system. I believe I would use an alarm to stay 1 second in the air before falling. As for falling without moving through the air, I'm not sure. Also on the topic of Donkey Kong, how would I make the player restart the room when...
  10. A

    Legacy GM Rotate physics room!

    Hi everyone, How can i rotate a physics room (using view_angle) and keep the gravity direction down (270 degree relative to the screen) ? for sure when i rotate the view this way the gravity direction will rotate with it, and it's easy to handle with the normal engine by setting the...
  11. N

    Phys, Zero gravity on object

    Hi! I'm trying to figure out how to set a ball to have zero gravity but still have collision and bounciness. Like the ball is affected by a power up and its gravity is set to zero but still moves around bounces but aren't pulled gravity. Setting Density to 0 in physics doesn't do what I want...
  12. T

    Legacy GM Physics: Undesirable wall clinging

    I've started messing around with physics worlds and want to make a platformer, using them. For moving left and right, instead of applying a force on the Player object, I just set phy_speed_x, because I don't want any acceleration / deceleration, just direct movement. However, when the object is...
  13. S

    Windows problem with gravity,keyboard_press event

    what i try to do is: i want to make my levels longer so when i press D or Q(left and right). i want everything but my player to move horizontal so its looks like i am moving but i just stay in the middle of the screen. what happens is: i press Q and the everything keeps moving even when i...
  14. Z

    How to create a proper jumping system?

    Me & my friends are involved in creating a game. He did the code for the jumps & is based on gravity. Whenever the character falls down after it jumps, it appears to be going down slowly and seems to be floating. Since I'm in charge of refining & cleaning up codes, I'm thinking its better to...
  15. F

    Player going through the ground

    Hello! :) My player object is moving through the ground (solid objects) when i jump from a high place. If i don't include vspeed = 0 and gravity = 0 together, it will move through the ground even while standing still. //Gravity if (place_free(x,y+1)) { gravity = 0.5; } else if...
  16. NazGhuL

    Adding gravity to this custom movement and collision

    Hi. This is very frustrating... There is something that I simply can't figure out or completly understand. I'm on this for a couple of days now. A ship use its thrust to move around. Gravity pull him down. Here is the basic code: //Set Direction from 0 to 359 if(Move_Left) { Direction +=...
  17. Yambam

    Cars on Planets Engine (Gravity)

    Cars on Planets Engine Maybe someone wants to make a game out of this. Or else it would make a good learning resource! :) GM Version: Game Maker 8.0 (and maybe GM:Studio?) MOD EDIT: It is not compatible with Studio. Target Platform: All Download...
  18. I

    Spherical (360°) Gravity

    Greetings, I am currently working on a unique, real-time, strategy, plat-former where the worlds are small enough to fit on screen... However I am having extreme difficulty implementing Spherical (360°) Gravity and have no idea where to start... If anyone has any knowledge on how to do this, it...
Top