physics

  1. hans

    GML Physics Collision With Inertia

    I'm making a physics based platformer. I can't get it where when two objects collide they impart each others speed on one another. ie: if the player gets hit by a barrel with a speed of 4 I want the player to then also be moving with a speed of 4 with the barrel. Does anyone know how to make...
  2. D

    GMS 2 Problem With Fixture Collision

    Hello, I'm posting here because I didn't found any person with the same problem as mine and I'm thankful for anyone looking into it. So I have a problem with the collisions between my fixtures, at first I just used the basic collision shape tool to create a box, but I wanted a better shape for...
  3. M

    GML Gravity is completely ignored

    So... I used GM a lot back in the day, 8.1, then I converted from Windows to Mac and that was it. Now after all those years I bought the IDE for macOS and decided to get back at it. First thing I wanted to play with was the new physics engine. So I made a couple of objects, checked on physics...
  4. SirCaliber

    GML [SOLVED] Objects will start with a random hsp variable, but only when created by a certain object.

    I have an object, oCorpse, that creates a random amount of oLoot objects when it is created. In those oLoot objects' create event, they get a random hsp and vsp variable. But the hsp only works if it was created by oCorpse, not by oChest. (oChest) On Collision with oBolt: with(other){...
  5. Deadly Serious Media

    GML Changing the fixture shape

    Hey everyone! So I'm attempting to include som physics objects in my game but I'm having a bit of a tough time with a sliding door. Non physics object collide just fine because to collision shape matches the image_index. Physics object are a different story. Now I may be going about this all...
  6. Nodamex

    Steam Lufulus' Creatures (Action RPG)

    Lufulus' Creatures is my second long-term game project. It is a top-down RPG. The game is now on Steam Early Access. I really want to read your ideas about the game. You may also send me message if you need a key to test the game. Get it on Steam...
  7. duran can

    GML Hook physics like Spiderman?

    Hi everyone, how can i make hook physics like a spiderman game on 2d? i tryed this if mouse_check_button_pressed(mb_left){ var a= instance_create_depth(mouse_x,mouse_y,1,obj_point); physics_joint_distance_create(id,a,x,y,a.x,a.y,true); physics_apply_impulse(x,y,a.x,a.y); } thanks for all...
  8. tagwolf

    Is there a pulley with motor?

    I'm wondering if it's possible to create a pulley joint that has a motor attached to the pulley. Example: Counterweight <-> Cable/Rope <-> Motor w/ Pulley <-> Cable/Rope <-> Elevator So that you could drive the elevator up/down and the counterweight would assist with the load and lower as the...
  9. Japster

    Demo Playable Teaser! - Gravity Star Rescue 'n' Racer (GSRR)

    ** TEASER updated at the same link! ** Now contains difficulty selections to try (they add more hazards, and some more troublesome turrets, rotators, etc) - conversely, if you select difficulty levels 1,2 etc, there's LESS stuff to worry about for those races / trials / on those difficulty...
  10. Mookal

    HTML5 [Solved] Binding Physics Fixtures Causes a Crash

    [HTML5, GMS2] I'm creating a customizable physics simulation intended to be playable in browsers. Everything was going smoothly until I implemented the ability to scale the physics objects (I'm using the built-in physics system). This involves creating fixtures with the proper sizes, and...
  11. P

    Bumping balls

    Hi, everyone. And I really need your help because my script doing physics of ball colisions is pour and I guess I need a new one. So please if you have a script or ideas of making it to Find angle of balls(circles) moving and their speed after hitting each other , please, help and share it with...
  12. Nocturne

    Released Microscope Madness

    OUT NOW FOR iOS AND ANDROID!!!! COMING SOON TO PC AND MAC! While working in the laboratory one day, you notice something strange… mutant motile cells have escaped their cultures and are trying to reproduce!!! Can you stop them before they mutate the mother cells and take over the planet...
  13. HayManMarc

     Hippie Bus (physics side driver)

    Hippie Bus You play a peace-loving hippie fresh on vacation from your job. You've taken the week off so you can go to the annual camping festival "VolksKamp". You must get everything you need, then drive the Hippie Bus out of town, up the mountain, and into camp. There may be other...
  14. Y

    GML (SOLVED) A prismatic joint keeping a object equipped on anothers' backside (from a side perspective)

    Hello community, I am attempting to program a method to make two physics fixtures properly interact with each other which is making a backpack (physics object) properly attach to the backside of the player character (physics object) even while turning left or right or rotating, this must work...
  15. HayManMarc

    GML Physics- how to stop wheel from turning?

    Hi y'all! So, I have a physics room set up with physics objects and all working like it should. Side view, angry-birds-style, where gravity is downward. I have a wheel object that I can add torque to and make it spin. It will then travel across the ground, up and down hills, jumping with...
  16. W

    GML Physics: Bullets Not Shooting Straight W/ 360 Aim

    Hi, I can't seem to get the player's projectiles to shoot straight using physics. In the game I'm making the player has 360 degree aim. Currently bullet direction is decided by phy_roations = obj_player.phy_rotation. It does the job for the most part except the trajectory of the bullets are...
  17. B

    GMS 2 phy_fixed_rotation not persisting between rooms

    Hi all. Getting to grips with GMS2 and the in-built physics, and have come across an issue. The same issue is mentioned in this thread, back in June: https://forum.yoyogames.com/index.php?threads/fixed-rotation-not-working-after-moving-between-rooms.64104/ In the creation code for my player...
  18. Fallspace

    Free Keplers Cosmic Arcade

    I made a 2d planetary orbit sandbox for my kids. Get a feel for orbital motion - and have fun blowing stuff up. I was experimenting with orbital mechanics, and orbital insertion in particular, and ended up with something my kids enjoyed playing around with. I used this site as reference for the...
  19. A

    Creating fixtures or using an object for solid static blocks?

    There is probably a really simple answer to this but I recently looked through the physics tutorial on the blog and was wondering what the benefit of having this in the create event of a static floor object is... var fixture = physics_fixture_create(); physics_fixture_set_box_shape(fixture...
  20. Robzoid

    Physics Engine Pixels to Meters

    I'm working on a 2D billiards/pool game and figured this would be a good place to use the GameMaker physics engine. This is my first time using it. I'm concerned I'm not understanding the "Pixels to Meters" field in the Room Editor. By default, it has a value of 0.1. I figure a "Pixels to...
Top