• 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!

physics

  1. 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...
  2. 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...
  3. B

    GameMaker 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...
  4. F

    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...
  5. 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...
  6. R

    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...
  7. R

    Discussion Moving Kinematic Object in Physics Room

    I'm trying something out working with physics and still a bit new to it. I'm using physic in a room, but I have one object that I don't want to react to gravity, but still want to collide with other objects. So the way I understand it, is that I need to make it kinematic, and the density needs...
  8. B

    (Solved)Problem moving object from on position to another in a certain amount of time using lerp()

    Hi all, I'm migrating a game that I've been developing in Unity to GMS2, and I'm struggling with this part as I don't know how to implement this in GML. Basically I just wan't to make a object move in one position to another in a certain amount of time throwing balls, just like this. The code...
  9. A

    GML How to create collision shape for a line that the player is drawing?

    Hi everyone! I'm making a game using physics in which the player can draw a line that functions as the ground. I can already draw the line, but I'm having trouble setting up its collision shape, and the ball never collides with it! (see image) Here's my code! When the player holds the left...
  10. H

    GML Bullet Collisions with Physics Enabled

    So I've been converting my game over so that it works with physics enabled, and I've my bullets working mostly properly but I'm not sure how to do overlapping collisions with Physics enabled. I'm thinking maybe each bullet could have collision_circle() with a very small radius, but I'm not sure...
  11. 0TastyPie0

    GameMaker Drawing a line that then becomes solid for other physics objects

    I'm working on a marble run type game, were the player can draw lines for the marble to run down. I use fixtures to setup and draw the line, however other physics objects (such as the marble) seem unaffected by the line. They simply pass through it, when the line is suppose to act as a wall...
  12. M

    Predicting a physic impulse object's trajectory

    hay guys how can I make aiming like this for impulse?!
  13. tagwolf

    Basic Physics Platformer Controls

    GM Version: GMS2 Target Platform: ALL Summary: I had made a platform control tutorial that is a bit more advanced than this one as it does not use any of gamemaker's built in physics engine. However someone suggested that I also do a physics one so here it is! If you're interested in the...
  14. Alloi

    GameMaker [SOLVED] Physics_Test_Overlap

    I have a parent object named oBlock. Then I have 2 children objects, one named oPlayer1 and the other oPlayer2. I am trying to have it so collision is detected if the other jumps onto their head. My issue is that when using "physics_test_overlap(x,y,image_angle,oBlock)" a collision is always...
  15. V

    GameMaker Help with Rope and physics_joint_set_value

    Hey I've been messing with some GMS2 physics but have come into a problem which I hope someone can help with. I've a basic side on platformer and can tether utilizing physics_joint_rope_create, which works perfectly well. The problem is I'm wanting "wind" and "unwind" the rope, which I'm...
  16. G

    GameMaker (SOLVED) Disable collision for the same types

    I have more soldiers, I want them to collide with enemies, but not between them. I read I could do this using the built in physics and assign them to the same negative group. But this drops my FPS a lot, so I want to know if I could achieve this just by using regular functions.
  17. MIchael PS

    Legacy GM Stickman/Ragdoll Fighting

    Hello everyone, I want some help with the game that I work on, I want to implement those stickman fighting kind of sloppy ragdolls with the funny and weird movement and waving swords. I know that I must use physics, but I haven't worked with gamemaker physics a lot. I would really appreciate...
  18. A

    Physics collisions with tiles

    Howdy Gamemakers, Is it possible to check collision with tiles in the physics world? Or is it restricted to individual objects? For example i paint the background with my tileset and check physics collisions with the various tile blocks on the fly. Cheers
  19. Carloskhard

    GML [SOLVED]Moving physics objects together/Joints

    In other words, I have a code that moves a certain phy_object in circles (around a planet, so Angle and position are changing). The code works for attaching objects to planets and it is the following(Feel free to use it): The problem is that if I do that, when my ship lands on that...
  20. Didjynn

    Job Offer - Programmer [paid] ragdoll and skeletal animation

    Hello, I am looking for a programmer used to skeletal animation and physics needed : - ragdoll creation, size must adapt to the sprites used - created ragdoll need to match the skeletal position when it spawns - when the ragdoll is hit, can be dismembered and particles goes out of the cut part...
Top