physics

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. Matt Hawkins

    Super Rufio Bros

    I've started working on a bootleg of the popular Super Mario Bros game. My goal is to capture the feel of the original game but change all the artwork so Nintendo doesn't come after me. So far I have the gameplay just about spot on. The gameplay is entirely physics based using the Box2d code...
  9. D

    Legacy GM How to have a character base his speed on the ground angle.

    Hello GMC! So I've been working on a sonic-esque platforming engine. I have the player able to move in all 360 degrees without any hindrance. I'm having trouble with getting the player to slow down when going up the hill and speed up when going down a hill. My engine is based on having 2...
  10. S

    Drag And Drop (GMS2)2D physics platformer - Drag and Drop ( no coding )

    GM Version: GMS2 Target Platform: ALL Download: N/A Links: N/A Summary: In this video I will show you how to make a physics platformer game in GMS2 using drag and drop, steps by step instructions on how apply physics impulses, torque, friction and other variants that you will need to move...
  11. X

    Legacy GM [Solved] Player Object shakes when moving vertically in any direction ( jumping/falling )

    The object I have created to test player movement appears to 'stutter' when jumping or falling. Disregard the shakiness of the GIF below ( due to low quality recorder ), the GIF still gets the point around, as you can see the obvious shaky movement of the player object as it moves up or down. I...
  12. XirmiX

    GML Movement based on rotation or another instance's axis?

    So, currently I have set up for my game pretty complex spawn points. One of these complex parts is that there are two doors that open and close. The doors are set up to move in a certain direction from their current position when a player spawns in that spawn point: Step event for one of the...
  13. TheOnlyWRT

    Moving Platforms

    Hey guys, so i am making a platformer game and the next feature i would like to add is moving platforms, both vertical and horizontal. I have already got jump through platforms working, and have used that as the basis. Horizontal platforms are working great, but i cant get vertical ones to work...
  14. B

    GML Physics player gets glitchy around other Physics objects

    I'm working on a platformer that makes use of GM's integrated physics. Despite my lack of experience with physics, I'm really happy with the result. While most of the movement works really well, whenever the player is ontop of another physics object without unlimited mass, everything's a little...
  15. Gizmo199

    Legacy GM Concave fixtures using paths

    GM Version: Studio 1.4 Target Platform: ALL Download: Concave fixture example Links: N/A In the above example, you can see how to use path points to bind multiple convex fixtures to an object to create a 'line' that follows a concave structure. Basically how it works is that it reads all of...
  16. R

    GMS 2 [HELP] Getting all instances of objects in object layer ?? [Solved (kinda??)]

    Hello, I'm working on an top down RPG. Ive gotten my depth and stuff sorted out but I've run into a problem. I want my collision to be untied to the tiles, that's why im using physics and objects as collision. You can see my problem in this screenshot: The blue marked part is one floor higher...
  17. B

    GML How can I make a grenade throw path more natural?

    Been messing around making a platformer were I can shoot bullets when I press left mb and throw a grenade with right mb. But in order to make my grenade throw have some sort of arc rather than a straight bullet, I made two paths using the path editor. One for when I'm aiming to the right and the...
  18. acidemic

    Alpha Ivan Race - 2D Physics Rally Game

    I am currently working on the 2D racing game with the working title "Ivan Race". I started this project in GMS 1.4 and after some while moved it to GMS2. I love the new cameras system introduced in GMS2 although I am not fond of it's overloaded, heavy interface. All game levels will be...
  19. A

    [SOLVED] Physics objects overlaying?

    Im having the issue where my objects stop on the ground. But if there are more than 4 objects falling on top of each other, they will bounce off each one / end up on top of each other. Is there a way to get it so they don't stack on each other? SOLVED: I needed to update the rate at which the...
  20. Bart

    GMS 2 Box2D: Cancelling out tire's sideward velocity

    Hi all, I'm currently using Box2D physics to create a basic top-down cart, using the following tutorial: http://www.iforce2d.net/b2dtut/top-down-car The first thing to do is to create a tire and cancel out its sideward velocity. The way to do this seems pretty straightforward: project the...
Top