# speed

1. ### Windows Movement problem

Hi, I´m making an RPG game and I use this code in my character´s step event: //Estado del jugador keyLeft = keyboard_check(vk_left); keyRight = keyboard_check(vk_right); keyUp = keyboard_check(vk_up); keyDown = keyboard_check(vk_down); keyActivate = keyboard_check_pressed(ord("z")); keyAttack =...
2. ### Discussion speed

I found out that the speed in all directions is positive in itself and the variable speed reflects the speed modulus or its value, but only I have a function that changes the speed to the opposite, gradually adding to it with the help of motion_add a part of the speed with the opposite sign...
3. ### GML Clever bullet

Hello everybody, i wanted to make clever bullet. The bullet, knowing the speed of the player and the direction of his movement, with the condition that the player does not change either the speed or the direction. Must calculate the angle at which it will fly out to intersect with the player So...
4. ### Object Speed Relative to Direction

I'm creating an explosion of instances that start at a center point and move outward. I set the direction to random(360) and a speed of 20. The instances spread out in a even circle from the center at the same speed. I was wondering if its possible to set the Speed relative to the Direction so...
5. ### GMS 2 Increasing the FPS with room speed but keeping the in-game speed

Hello everyone. I'm in the middle of a conundrum. I've been working on this game for 5 years now, soon to be 6 years and for some reason when starting the development I decided that the room speed 40 was a good pick for the game. I later learned that this isn't a very optimal room speed. In...
6. ### Tower defense - how to slow down tanks while their turn on smooth paths?

TowerDefense game, tanks moving on smooth path. Paths go in all directions. I’d like to slow tanks down (reduce their speed) on path when they are turning so it looks better. Unfortunately I don’t have idea how to handle it based on path because path has plenty points to make turning look...
7. ### GMS 1.4 - How do I change the APP speed during game play?

It's very helpful in development to be able to speed things up during testing. I currently have code that makes the room_speed 4 times the normal while holding down the left trigger button. However, this does not affect sound. Is there a way to make EVERYTHING match the speed difference when...
8. ### motion_set seems to add speed?

hi, I'm using motion_set() in my top down-viewed game to make enemies get slightly pushed backwards by a certain collision. collision event for enemies: pdir = point_direction(other.x, other.y, x, y); motion_set(pdir, spd); 'spd' is always a characters base speed variable. motion_set() is not...
9. ### GMS 2 How to limit speed of an object with physics?

I have a ship which I apply a force to, so it can move. But eventually the aceleration adds and it goes too fast. How can I change that? I don't want to reduce the velocity of the physics world since I need that speed for other objects or that same one after it get upgrades and can go faster...
10. ### instances remain static after assigning a speed of 8 and direction of 90, why?

Hello Community This beats me. I have converted a game from GM 1.4 to GM2. Game worked fine in GM1.4 but now all my instances that have speed assigned to them do not move! for example i shoot bullets they remain static on the screen. GM Support refuse to help even tho the bug appeared after...
11. ### Collision help with decimals

Hello everyone. I'm having trouble to understand how collision detection works, I'm really beginner and not being the english my main leanguage, manuals doesn't help. Well, with that said, I'm trying to emulate Super Mario World physics, for now I only have the horizontal movement partially...
12. ### GML Replacement for built in speed functions?

So I'm trying to make some sort of F-Zero like racing game, but I'm using the built in speed variables and functions because I don't know how to achieve what i want with custom variables, which is already bad because the built in speed variables are way too jank. The other problem with them is...
13. ### Windows Game speed has messed up! HELP!

Hello guys!! I have a queston that is killing me, last week i tested my game and recorded some gameplays to upload to my social medias and gamejolt, everything GOOD! But, i open my project today and the coordinates movements (X,Y) have slow down, like gravity of moon, and, my animation speed...
14. G

### Legacy GM whats a slow speed in code

ive been trying to get a speed that is slow, in code but i never get the right speed. i tried image_speed = 0.1 and image_speed = 0.25 and more. but i never got the right speed. Please help :)
15. ### GMS 2 Issue with collisions

Hi GameMaker Community! So I'm having some troubles with collisions detection. I'm using some basic code to make my walls tangible: //Horizontal Collision (ok) if (place_meeting(x+hsp,y,obj_wall)) { while (!place_meeting(x+sign(hsp),y,obj_wall)) { x = x +...
16. G

### GMS 2 (solved) hspeed=0 equivalent for diagonal?

How would I do the equivalent of hspeed=0 (leaving the vertical component of speed intact while killing the horizontal component) to kill speed in one diagonal direction without affecting the other diagonal? Thanks.
17. ### Need help fixing busted PACMAN code...

I included a short (2 mb) open source file made with Gamemaker Studio 1.4 Link to open source Zip File: Drop Box or Google Drive In it are two rooms...One where the game runs fine. But the other...I tried to speed up Pacman (and enemies) from speed 2 to speed 2.5. (Note: I want to speed up...
18. P

### Windows View not following object because of high speed

Hello guys, so I have this 2d top down starship game and the thing is everything works fine for now but I use this code In the step event to follow the player because the player ship is almost always outside the room borders. The only problem is the player object often exceeds speeds of up to...
19. ### About enemy objects' movement speed...

So. This might have the easiest solution to it that i just cant figure out, but: i have this TDS game where an enemy object has two stances, patrolling and attacking. Patrolling means it gets a random direction and speed, and starts going around the level. (in Step Event) Then when the time...
20. M

### Gamemaker Physics, Speed and Bounce Problem...

Hello, I help you guys can help. I am using the Gamemaker functions speed, physics and bounce to have my objects move through my room and bounce off eachother wen they collide with any other object. This is so far only done with the drag and drop commands. The problem is that sometimes objects...