So I've come across quite a strange bug recently.. I've been developing a game with one large room, lots of enemies and one player. The player moves with a simple point and click system and moves at a speed of 0.5, the enemies also move at a speed of 0.5, this has worked fine up to now...
How can I make an object move from one specified location to another in a specified time limit at a constant speed?
I've pretty much got the moving of objects down, but I don't know how to enforce a time limit that would also determine the constant speed for the object from a given position.
Hey guys,
Hoping for some help with a problem I can't figure out. I have a ball object in my game that bounces around in random directions upon creation, and off the walls of the room.
I have a series of buttons at the bottom of the screen that I want to use to do two things: Change the...
I compared array access times in GMS2.
The GMS2 code is here
http://s000.tinyupload.com/index.php?file_id=72896515703887271702
The results are
500 iterations
1172 instance array [r,c]
1225 instance array [c,r]
1154 global array [r,c]
1215 global array [c,r]
1197...
I can't seem to figure this out. My player object is a spaceship that starts off invisible. When visible become true, speed == 30.
My problem is that I cannot get the ship to drop out of warp with any of the commands that I've tried. I've used speed - -, friction, and everything I could think...
To have pixel perfect movements, I use movement loops, but this only lets you move in integers unless you store the speed remainder.
ySpeedRemainder = frac(ySpeedRemainder) + ySpeed;
repeat(abs(ySpeedRemainder))
{
if place_meeting(x, y + sign(ySpeedRemainder), objSolid)
ySpeed = 0;
else y +=...
I'm making a top-down game in which my player is facing to the top of the screen at all times, and instead the floor is rotating when I move the mouse. is there any way I could make my character move forwards, backwards, left and right in the direction which my sprite is facing?
the direction...
2 things:
1) When I set vertical speed to 0 (to prevent my character to fall off the screen after jumping), I can't move horizontally until I jump, any way to be able to fix this?
2) Is there any way to limit for how much time I can jump?
can someone please tell me how to make my diagonal speed equal to my hspd and vspd in this code?
x += (right - left) * spd;
y += (down - up) * spd;
as of now the diagonal is noticeably faster
Hello,
in my game, player can move in 8 direction using wasd and he will face up, down, left or right, based on mouse direction. right now, the speed is always the same, no matter where the player moves or face. What I need help is to make the player move slower (60%ish of the movement speed) if...
Hey guys, I've just recently started toying with Box2D and right off the bat I can see there are many differences between the default GameMaker engine, and Box2D which I can manage to work around. However, I don't understand the impulses, force, phy_speed_x, velocity, or anything like that.
I'm...
I'm just trying to get to grips with some basics of the physics engine. The game I'm making consists of a ball which, when shot, fires towards where the mouse was before the button was released, and bounces off any static objects. It's bouncing realistically, but isn't maintaining its original...
Hello. I'm currently remaking the legend of Zelda: Lttp into a fan game with new story. I'm currently trying to fix diagonal speed. Okay, so normally, if you move right, left, up, down, your movespeed is 3. However, when you move into diagonals, your speed decreases by 2. So can this work? :
if...
I think this is the right section to put this. Basically what I want to be able to do is create save states for a fighting game (so to be able to implement rollback netcode at a later date), with Game Maker's buffers seeming to be a good way to do this. This is simple enough with most of what I...
At the moment, the basic platform physics of my game are going well (it uses arrow keys). I'm currently trying to implement an optional gamepad input into my game, which uses the joystick for moving left/right and the A button to jump. But whenever I press an arrow key AND a joystick direction...
Hi, everyone.
I think everyone(at some point) had problems with players moving faster when moving in a diagonal direction, and i had diagonal speed problems solved, but for more precise collisions i started using physics world, and now i'm back at it again with the diagonal double speed.
I've...
Hi.
I just upgraded my GM Studio to 1.4.1760. After it was done upgrading, I opened up my project, then ran it, and noticed that the game speed had doubled for some reason. I tried setting the room speed to half but it had no effect whatsoever. What's going on?
Hey guys!
Today I've been goofing around a bit on Game Maker Studio and I wanted to create a falling object that respawns and accelerates everytime it hits the ground, so that it gets harder to avoid the object. However, at a certain point the object will fall too fast and should slow down. Is...
Hello,
I've seen many youtubers play my game and I don't understand why, for some of them, the game is in slow motion.
I don't think PewDiePie has a slow computer, with all the money he is making, and yet for him the game is very slow. (here is the game in normal speed)
I've seen also...