• 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. Caio

    GML Jump and Gravity Question

    I'm a beginner to intermediate in the programming language part, and in GML, and I'm always trying different ways to program something. I've watched different tutorials, and most use the variable "vspeed" for the "Y" in the gravity and jump part. I tried to program using the same "Y" instead of...
  2. T

    Physics Items keep stopping

    Hello. Im currently trying to build a gravitational model of planets in Gamemaker2. So far gravity and everything is working great except one problem, Every like second or few the objects just randomly stop and basically the physics has to reset so all momentum and stuff is gone. Any Help? Code...
  3. S

    Bouncing when landing with gravity+physics

    Hello. So i'm using physics and the gravity option from the room settings to make a platformer. Everything is going great except that every time my player lands on the ground it makes this little bounce. It looks super good and realistic but i don't need it in this case. How can i remove the...
  4. T

    Astrodynamic Equations to Gamemaker Code Help

    Hello, I'm currently trying out a few things for a physics class and want to try to replicate basic orbital mechanics in gamemaker 2. This requires some advanced math though that gamemaker would not support by default. I want to be able to run this equation in game maker But this formula...
  5. B

    Gravity/Physics are bugging out

    I am trying to build a game in which a car drives across terrain by the terrain moving under the wheels and pushing them up using collision, but whenever I start the game, the wheel flies off the screen to the left ridiculously fast. I traced that the problem occurs whenever the terrain has...
  6. NazGhuL

    Steam Space Ashes

    Space Ashes is a slow paced arcade game where you control a ship sent on space stations to burn swarming forms of vegetation. Defy gravity in 20 nonlinear levels, explore to find secrets and defeat bosses. Shut down the air system, turn off the lights and burn them all! But beware, those life...
  7. MMM

    Asset - Demo Pinball machine GMS1 and GMS2 example

    Hi guys! Today I made pinball machine GMS1 and GMS2 example :) This Game Maker Studio 1 / Game Maker Studio 2 demo will show you how to make a pinball machine. You can use arrows on a keyboard or L.mouse button for flippers so this is a great demo for a PC, as well as the Android, uses. You can...
  8. MMM

    Asset - Demo Multiple gravity fields

    Multiple gravity fields This Game Maker Studio 1 / Game Maker Studio 2 demo will show you how to make multiple planets, each with their own gravity, or a simple solar system. https://marketplace.yoyogames.com/assets/7217/multiple-gravity-fields
  9. M

    GML Help with realistic physics working on multiple objects.

    Sorry for the title being so confusing, so to fix that issue I'll explain my issue, I'm relatively new to GM 1.4, and I was watching Shaun Spaudling's tutorial on basic platformer movement physics, and heres my code: ///Movement Variables //Get Player's Input key_right =...
  10. S

    GameMaker [SOLVED] Awkward Dash Jump

    So in my game you can dash and if you pressed jump while dashing you go slightly further and higher but everytime the player get to the peak of it's dash jump, it looks like it hits a roof and heads down immediately (not straight down, but in a arc like how it should). It just looks weird and...
  11. M

    Gravity

    Can someone explain why my gravity is not working? It works when I start the game, but when I press space to jump, it doesn't land back on the object. Thank you! if keyboard_check(ord("D")) x = x + 5; if keyboard_check(ord("A")) x = x - 5; if keyboard_check(vk_space) y = y - 5; if...
  12. N

    Angular Damping without Physics.

    Hi all! I've wooden blocks. (rectangles) and I added gravity with the code: ///Create Event grav = 0.8; vsp = 0; hsp = 0; ///Step event if vsp < 100 vsp+=grav; if (place_meeting(x,y+vsp,par_ground)) { while !(place_meeting(x,y+sign(vsp),par_ground)) { y+= sign(vsp); } vsp...
  13. X

    I'm trying to make destructable terrain

    Can anyone recreate this or make something similar? I basically want to make a terrain that obeys gravity, but I have no idea where to start.
  14. A

    Legacy GM [SOLVED] Falling damage causes Player to move through walls

    Hello! I've altered my Player's vertical collision so that if he jumps/falls a certain distance and his gravity is normal (the Player can alter it) they take damage. This all works fine. The issue is, once the Player lands they then 'sink into', or rather can move through, solid objects - as if...
  15. Doc

    GML [SOLVED]Random movement and collision breaks with gravity

    So the problem is pretty much the title: I can generate random movement for the instance (speed and direction), but when I use the else statement in collision, the instance breaks by jumping to the top of the room, and floating down and through objects. I've also tried just incorporating...
  16. H

    Legacy GM Boxes with gravity crashes GM when collision is applied

    Hello! I am currently trying to make boxes with gravity, which can also be picked up and thrown by the player. The boxes also have gravity. Everything is working alright, except for when I want multiple boxes to collide with each other - then the game freezes. Here is the code I am using for...
  17. 2

    GML Set x Before Existing Gravity Moves them in a Frame (Possible?)

    Can I move xy cordinates before gravity (that has already been set in the Create Event) moves them in any given frame? Does existing gravity move an object before the Begin Step? I need to know because the order of operations is important for my code to work.
  18. H

    Legacy GM Jump-through platforms with gravity

    Hello! I am trying to create a 2D platformer with jump-through platforms (in the shape of square boxes). However, these boxes have gravity which makes them fall through the ground if I set their masks to "nothing" whenever you are trying to jump through them (using the method shown here). This...
  19. K

    Steam Take the Cake

    Try demo! (click here) Get full version on Steam! Get full version on Itch.io! Such a beautiful and delicious cake … but where did it come from? Why did the robots steal it? You must help Frank the Friendly Furball take back the cake. It’s far too precious! Webpage...
  20. Carloskhard

    Android Sideral: Space Exploration (Android) [+ Development Blog]

    About the Game: Sideral is a 2D space survival and exploration game With procedural generation of planets and physics system to create a galaxy to explore and conquer. Control the rotation and trust of your ship. Learn to maneuver and land carefully on planets but be careful with gravity...
Top