1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. André Guilherme

    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...
  6. Harper

    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...
  7. 0TastyPie0

    GMS 2 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...
  8. Mr Trick

    Predicting a physic impulse object's trajectory

    hay guys how can I make aiming like this for impulse?!
  9. 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...
  10. Alloi

    GMS 2 [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...
  11. V

    GMS 2 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...
  12. G

    GMS 2 (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.
  13. 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...
  14. 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
  15. 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...
  16. 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...
  17. Arlan64

    Legacy GM [SOLVED] How to do water and ice physics in GameMaker 8.1?

    Hi guys, I want to create a swim gameplay for my character, but I don't know how to makes this posible... I give you my codes (many parts have been copied from Shaun with his tutorials) Blooby (the player) >> Create Event grav = 0.50; hsp = 0; vsp = 0; jumps = 0; jumpsmax = 1; jumps_outside...
  18. D

    Force calculation Physics

    Hi guys how are you I have a doubt how do I know the force an object received by an impact using the gms1.4 physics?
  19. HayManMarc

    "physics_apply_force" problem <SOLVED>

    I'm playing around with physics and trying to get an object to move straight ahead. I'm using this bit of code: var forward_x = lengthdir_x(8000, -phy_rotation); var forward_y = lengthdir_y(8000, -phy_rotation); physics_apply_force(x, y, forward_x, forward_y); It moves the object, but...
  20. K

    Windows Check whether player is above or below object

    How would I check whether the player is above or below a certain object?