# acceleration

1. ### SOLVED Help with certain acceleration?

Hey all whom use this forum! I was wondering if someone can help me tackle a problem? I have my acceleration and deceleration working the way I want it. I have a "sprint" button as well. The problem that I'm having is my speed won't decelerate to the desired number, but instead jump to that...
2. ### Gravity Acceleration

Hi i was trying to make gravity acceleration. This was my idea. grv = 1; vsp = vsp + grv; if (place_meeting(x,y+1,oWall)) { grv = 1; } else for(i=1; i < 50; i += 1) { grv += 0.1 * grv; } if...
3. ### SOLVED collision,friction and accel problems

i followed a tuto on yt about movement and the dont use the speed var so i cant use the friction function can someone help me: hspd = (rkey-lkey); vspd = (dkey-ukey); if (hspd != 0 or vspd != 0){ dir = point_direction(0,0,hspd,vspd); hmove = lengthdir_x(spd,dir)...
4. ### Delta Time speed problem

I'm having a very bizarre delta time problem that I can't figure out how to fix. Accelerations actually work perfectly, since I followed this tutorial: https://web.archive.org/web/20160307185547/https://www.niksula.hut.fi/~hkankaan/Homepages/gravity.html The problem is this: when I make my...
5. R

### Problem with Deceleration

I have a player object whose state variable is set to a player_jump state whenever up is pressed (the state script, of course, is executed in a step event) It starts out being a certain vspd (which is constantly being added to the Player's y position), but I want it to start to decelerate (as a...
6. ### Legacy GM Running in Platformer

Hey all! I've a small problem when running my platformer game. If I press shift my character needs to run, but it only runs to the right. When I press shift + left arrow key, the player walks to the left and not runs to the left. This is the Run code: Step Event Player: key_left =...
7. G

### GMS 2 [SOLVED] Can't figure out how to do collision for accelerated movement

As the title says, I quite suck at doing collision, mainly because my movement code includes accelerating and decelerating hspeed and vspeed and all the fixes i've looked for rely on the fact that the movement speed is fixed and doesn't change. In the step command of obj_player: maxspeed = 6...
8. S

### GMS 2 [SOLVED] Movement Using Cumulative Speeds

So I have a script that the player executes that controls movement. playerRunSpeed is set to 90. playerDiagonalRunSpeed is set to 63. xAcceleration is set to 6. yAcceleration is set to 6. yCurrentSpeed is updated every step of the game based on what has happened to it before. xCurrentSpeed is...
9. ### GMS 2 Noob Problems: Platformers and Wall Jumping [Solved]

SO, I am a dedicated artist who has decided to try and learn programming myself so i can at least try to make something worthwhile with both skills sets... and so far... i am actually having a lot of fun learning and problem solving! But there are some issues I cant seem to wrap my head around...
10. R

### Acceleration and Deceleration Help

As some of you may know, I am working on a commercial side-scroller game, and although I have plenty programming experience, I have some trouble on some presumably simple things, such as acceleration and deceleration for the player. The problems: The deceleration integer never decreases below...
11. P

### 2D Simulate aircraft acceleration/decelleration

Hello everyone, I try to write a small demo project with an airplane (sidescroll) fly with control of acceleration (it's a biplane) so basically player control propulsion with right key till value of 10 let's say and stop it to 0 with key left. I not use 2d engine nor gravity because I am just...
12. ### Acceleration and Momentum (Physics Question)

Hello GMC! Today I have a question about acceleration and momentum using GameMaker's physics. I'm making a car racing game, and I'd like there to be bigger and heavier vehicles that accelerate slower but can hold up some steady momentum and don't get thrown off their path as easily as the little...
13. ### Legacy GM [Solved] Accelerative movement seems to be tricky

I've followed some tutorials in the past and checked back on one in order to create a basic platformer, as it seems I had forgotten the basics of how to make it all work over time, since I'm basically redoing my entire game (reason being that everything's just bunched up, so I just created a new...
14. M

### Move Objects With Your Mouse

In my game, you basically pick up objects with your mouse and throw them away. I tried to create a rope joint between the object and the mouse pointer, but it only allows me to move it around, and when i delete the joint, the acceleration that it used to have doesn't affect it. Is there any...
15. M

### Keep The Accelaretion of The Joint

In my game, you basically pick up objects with your mouse and throw them away. I tried to create a rope joint between the object and the mouse pointer, but it only allows me to move it around, and when i delete the joint, the acceleration that it used to have doesn't affect it. Is there any...
16. C

### [Beginner] Platformer Movement Acceleration and Jumping

I've done a bit of searching because I thought this topic was on the old GMC but alas- I've been working with GM for a long time but still am pretty garbage when it comes to programming (including drag and drop). All I want to know is how to add acceleration to the player's movement. So that...