physics

  1. S

    Legacy GM Can I update physics objects at room_speed?

    In my heart of hearts, I want to use GMS physics in my top-down racer, but I'm using a mechanic that continuously augments room_speed to slow things down, and I found that the motion of physics objects were not bound by room_speed. (I know binding game motion to room_speed is hacky, but it...
  2. Luke Pierson

    Custom Physics Needed

    Hello! So, I don't use the built in physics engine in GameMaker because, firstly, I don't need it for much. Secondly, I want to have as much control over my code as possible. So, when the player breaks something or when the player dies, they emit a couple objects that move outwards, rotate, and...
  3. E

    Legacy GM Physics Box2D Bouncing off Walls

    I have been having issues with the default physics 2d engine. I have two 2d games, a minigolf, and a pool game, both of which use the built-in physics engine in a top-down format. The issue is that when the balls bounce off walls, their collision isn't in the same direction. So basically if the...
  4. W

    Legacy GM How to recreate this effect/method/object?

    Hey! So I'm making a mini side project and havent started as I dont know how to do the basis of my game. Your a block of pixels who flies around in a world (top down) and can thrust 360°. You collide with the sides of the screen but you can move up and down the screen. I am trying to start with...
  5. erryox

    Box2D max speed

    I'm trying to do movement by applying force. But at the same time I want to limit the max speed of the instance. Does anyone know how to do this? I know that the physical engine in Game Maker works separately in its own cycle. And a simple speed limit like: phy_speed_x = clamp(phy_speed_x, -3...
  6. Bingdom

    Getting proper thruster orientation with COM

    Hello GMC! I'm currently working on a top-down block physics spaceship prototype. I've run into an issue where I'm having trouble figuring out a great way to activate the correct thrusters to effectively rotate the ship. I've got a working method, but it only works on certain designs. Here's...
  7. S

    Question - Code Physic Particles Glow

    Hi I started to play around with physics and came accross this video: Does anybody know how to achieve that the center of the mass get a brighter color (glowing)? The linked Game maker file from the video is not working correctly anymore in GM Studio. I tested different blending modes, but...
  8. J

    GMS 2 [SOLVED]Can you clamp a physics object to current view?

    Hi I have a PHYSICS object that I can move around with my analog stick on my controller. I am very happy with the way it moves and interacts with walls etc. It is however not the object my Viewport follows around, meaning it can go off the screen.. Is there a way to let the borders of my...
  9. P

    Legacy GM Bullet - how to set impulse speed - physics

    Hello, i have small problem with speed of bullets in my game. I have a game where player is shooting bullets towards mouse - everything works fine except i can't change bullet speed. Looks like my bullet is faster if i click when my mouse is far away from shooting object, if my mouse is closer...
  10. S

    Asset - Extension Looking for a physics engine that allows slow motion

    Hello! I'm working on a POC for a time-manipulation game, and the physics engine is working great at giving me the feel I'm looking for, but I'm looking for a way to make objects travel in slow motion. GM physics operates in a blackbox, and it's fully independent of room_speed, so that...
  11. T

    Legacy GM Need help with Physics collision checks

    I'm making a Physics-based platformer and I encounter the following issue: when the player object moves left and right, while in mid-air, and bumps into a wall, it slides on that wall, which slows down the object's falling speed. It's probably because of the nature of the physics engine. The...
  12. R

    Physics Snap to Grid

    Hey i've been working on a little Terraria-like game and I was doing fine with snapping blocks to a grid when the player places them, but when i created an arrow object (which uses physics), i also had to make the blocks use physics, which makes them not snap to the grid anymore. I can't find a...
  13. J

    physics

    Does anyone know a good physics tutorial that I can follow, I use gm2? thank you in advance
  14. M

    My sprite animation isn't working

    So I am trying to create this game in a physics world.. and although , the moving and standing animation is working, the punching animation isn't.. it doesn't do anything.. it just remains stuck there.. although while moving the player, if i press the button for punching it kinda works.. but I...
  15. FrostyCat

    GML When NOT to turn on the physics system

    When NOT to turn on the physics system GM Version: GMS 1.x / 2.x Target Platform: All Download: N/A Links: N/A Summary: A summary of situations when the GMS physics system should be turned off. Introduction This guide aims to document situations where the physics system should be turned off...
  16. Reaktori

    Windows Cave Pilots

    Download Zip Cave Pilots is a local multiplayer game for 2 or more players (no single player, sorry!), where each player controls a tria... I mean a high-tech spaceship in cramped cave levels, trying to navigate in hazardous environments and ultimately destroy all opponents. The caves are...
  17. F

    [Advanced Programming] Clothing physics without actually using physics?

    Hello there, fellow programmers! I am currently working on a 2D metroidvania game that contains a character that might use a scarf on his neck! I know that there might be a way to do it without heavy pixel arting using programming knowledge or shaders. It would work like this: the scarf would...
  18. G

    Legacy GM rope swinging physics?

    so i'm working on a 2d platformer and i want to add ropes that you can swing on, i have tried a lot but no results! i want the rope to swing left and right along with player input and to jump off you hit space and will jump off on the side of the arrow key you're holding (example if you hold...
  19. SayBaconOneMoreTime

    GMS 2 Any *real* guides for top down collision out there?

    Hi there, So I am to the point in my programming journey where I acutely feel the need for more control over how my collisions behave, but I am not smart enough to code my own system and feel good about it. I have been using the physics engine, and the more I try to do interesting things with...
  20. J

    Stop physics object moving after reaching certain point

    I have an enemy that Is moving towards a randomly generated point above the player, but I cant seem to get it to stop when reaching the destination point (the object does stop, but it still tries to move causing the sprite to twitch, which is the actual problem here) here is the movement code...
Top