Hello everyone!
Could anyone, please, explain how to make player move smoothly? By default it looks very bad, player twitches while moving X or Y and effect is increasing with diagonal movement. Sometimes I can even notice small changing of pixel color of the outline of a character. Black comes...
I'm trying to create a sidescroller game that works in two dimensions, and loads and offloads objects in chunks. For example, say the player is moving towards the top-right corner of the room. Instead of the player object actually moving in this direction, all loaded chunks move toward the...
I need physics for click to move but i cant figure it out
Obj_mouseClick
Event: step :
if(place_meeting(x,y,obj_player)){
image_alpha = 0;
} else {
image_alpha = 1;
}
Event: Glob Right Button :
x = mouse_x
y = mouse_y
obj_player
Event: step :
if(instance_exists(Obj_mouseClick)){...
I am making a shooter game where the enemies move down toward the player until hit or they go off screen. I have some slow enemies that take more hits and I want the normal fast enemies to slow down when they contact them so that they don't go past the slower enemies.
No matter how I seem to do...
Years ago I was used to make the character movement in a platform game using the DnD "set direction" + "set speed" in a "key press" event, and then when the player wants the character to stop moving, I used a a "set speed" to zero in a "key release" event. Im coming back to programming and now I...
Hey everyone,
I am currently making a top down shooter in which I have successfully made the enemy always follow the character. I have hit the point where I feel comfortable enough figuring out my own ways of making everything happen.
Initially I wanted to do something along the...
I want to make a colision mask in Gamemaker Studio 2, to my moving character and I ve been looking the internet to find some ways to use colision mask properly, here is what I found so far:
1 way: Just using the automatic colision mask that gamemaker offers. This seems to be very limited and it...
Hi,
I am currently creating a Cutscene System and when I test the game in debug mode the delta time calculation does not freeze while Custom Error Messages Show up or Breakpoints are triggered...
This totally destroys my verification of the movement code while debugging :/
Is there a way to...
is there any way i can optimize this movement code to save space
OBJ_Player
Crate//:
idle = 1;
walking = 0;
up = 3;
right = 2;
down = 1;
left = 0;
Action = idle;
Direction = down;
View[1,3] = v_p_upIdle;
View[1,2] = v_p_rightIdle;
View[1,1] = v_p_downIdle;
View[1,0] = v_p_leftIdle...
Me again - hey there! :)
I´ve got a problem with my swimmer, when he collides with my water collider body.
When he touches water, he experiences the slowmo-effect of water-physics, even
the buoyancy.
But the swimmer does not play the animation within the sPlayerS (S = swim)... has
25 frames of...
I've gotten an enemy to go towards the player object once within a certain range but after that it won't stop following no matter how far away I am. Is there an _stop moving command that I can use?
if distance_to_object(obj_player) <= 96 {
spd = true;
}
if spd = true {...
so i Am trying to animate my sprite movement and i got it to do the animation .But i don't know how to make it go into an idle pose when it stops moving.here are pic's of my code
i tried adding a macro but then it was glitching. i need help!
So, I am working on a Top-Down explorer game (is that a real genre?), I need some help with my enemy AI. Every enemy has the following states:
The stuff that I have already gotten down is:
scr_enemyAttack
mp_potential_step(obj_player.x, obj_player.y, huntspd, false)
&
scr_enemyDie...
GM Version: GMS2
Target Platform: ALL
Download: https://www.dropbox.com/s/6ntwlhiqkfoqiah/delta-timing.yyz?dl=0
Links: N/A
Summary:
Delta-timing is used to make sure the game doesn't actually slow down due to low FPS. This tutorial teaches you how to implement delta-timing and also use it with...
hey guys.
so for convenience sake i was wondering if you guys had any better ideas on how to move you player, right now my code looks like this:
Keyboard Event for <Left> Key:
execute code:
if (sprite_index=spr_player_NML){
sprite_index=spr_player_L;
}
if (sprite_index=spr_player_NMR){...
I have two objects, I want obj_a to do two things:
A: Move to the closest instance of obj_b
B: Rotate to still be on the same origin as obj_b AND face the same way as the closest instance of obj_b
I am really having trouble getting this to work... I am kinda new to GMS although I have about...
Hi there,
I have recently started coding with Gamemaker and am making a top down shooter, kinda like Hotline Miami.
I have been able to find a website:https://www.yoyogames.com/blog/432/buttery-smooth-tech-tips-movement
which gave me tips on a super smoothe code for player movement however I...
Hey everyone, so in trying to replicate a diablo-style movement system, I came across an annoying issue.
So the code is really basic, the actual movement has to do with creating an object and then moving to it. The direction the player can move is locked to 8 angles. The code for 8 directions...
For example, I have player object and any X position (or special object), and if player get near it, player goes upper, like for pseudo slopes, because my game has no collision objects like in platformers, but just "y-floor" variable that sets the y-position where player stop falling.