Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
I've been trying to find a way to get the angle that a supposed turret will need to aim at taking into consideration projectile speed, distance and the current position an enemy is in to where they WILL be when a projectile could hit its mark
This is what i have at the moment, this only aims...
I have an enemy in my game that follows the player. How would I be able to make the enemy sprite flip depending on if the player is to the left or right of the enemy so that the enemy is facing the player. I am not worried about up and down just left and right. I am using dnd in GMS2.
Thanks!
I want to know how to make an object slowly in a turn in towards a target direction
However I want the object to turn left or right depending on which way would be faster to reach the target direction
So this will not work
if direction > target direction -= 1
else direction += 1
Why? what if...
Hi Folks,
I`m an interested beginner in programming and using GMS2. I´ve already seen different
YT-Tutorials, f.e. making a Jump`N`Run game. I can follow all codes and steps. But I
hang up on a simple weapon behaviour. Maybe there is somebody can gimme a hint!?
I have a fully functional...
Say I have a direction and that I want to get the x and y axis values from that. Similar to how I can get a direction from a gamepad with point_direction, is there anything I can use?
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...
Good evening.
I've been tweaking some smooth movements with a virtual joystick for Android.
As is, the joystick allows you to control the direction of the player and works perfectly, but the character changes directions immediately.
I've managed to make the player change directions smoothly...
I've been messing around with my code for a few hours now, and I'm unable to figure out why, my enemy object doesn't just, turn around when he reaches the edge of a block. Please let me know if you need any clarification.
//no fall
if ((fall_ == false)...
For example, my player look in direction 90°. If I press UP-key, player move itself at it direction.
I don't use basic GameMaker movement variables, like direction, speed, hspeed, vspeed, but instead of them dir, hspd, vspd, spd, maxspd and stuff so I need make it with lengthdir_x, lengthdir_y...
Hey everyone,
I'm currently using motion_set for movement. You basically play as a ship that can move in any direction via motion_set(image_angle, spd). The variable "spd" is simply a value, really basic stuff.
This works fine, but I can't get any form of acceleration/deceleration to work with...
I'm making a game about dark holes and gravity, but i can't figure out how to make work the move_towards/direction function dark hole gun step code (Gravity Traveler):
DarkHole=0
if keyboard_check(ord('A')) {DarkHole=1}
else {}
if keyboard_check_released(ord('A')) {DarkHole=0}
else{}
Or the...
Hey guys,
I'm pretty new to programming and recently got a problem which I can't solve on my own:
if (horizontalgeschw != 0 || vertikalgeschw != 0) {
while (angle_difference(direction,image_angle) < 0) {
image_angle += 2;
}
while (angle_difference(direction,image_angle) < 0) {...
So I have created a PCG system which makes floor tiles etc. inside the dungeon
(everything there is working amazing),
My problem lies in the wall creation. I'm trying to tell the wall objects what image_index to show based of left, right, top, bottom, bottom_right etc., using open spaces around...
In an alarm[1] event called obj_ufospawner I have the following code:
// set the direction of the UFO
var ufo_dir = irandom(1);
var x_start = 0; // set the x start point
var y_start = random(400) + 60; // set the y start point
if (ufo_dir == 0)
{
direction = 0; // go right
x_start =...
I have a sword with angle approaching a point_direction at mouse.
What I want is, when I click the mouse I can start drag its angle and when I release the mouse, the sword swing approach the angle stored at the start (when the mouse clicked.) Then starts again.
I do drag from angle 5 to -5 but...
Hello,
I'm trying to get the direction that is created through mp_potential_step or something similar.
I just need the direction for an enemy to move in while updating to avoid solid objects.
I've tried doing this:
mp_potential_step(obj_Player.x,obj_Player.y,0,false);
ScoutDirection =...
My character stops in the correct direction where the key is supposed to be (turning Right and stops where it suppose to look)
But when I turn left and stop, it just turns the opposite where it supposes to go.
look at the gif to for better understanding.
the above image is just the camera rotation around but it isn't smooth, if you notice it sometimes goes smooth and then itll go fast. also periodicaly when this issue is happening the character wont walk forward but at an angle. so im thinking I have something messed up with how im manipulating...
My obj in a top down click to move game has:
image_angle = direction;
It faces the direction it is moving towards, but once the movement stops, the sprite resets to it's original right-facing orientation. How can I force the sprite to stay pointed in it's last known direction?
Thank you!
Hey, I'm using GameMaker Studio 1.4 to create a horizontally-scrolling SHMUP. I have create multiple sprites based on the direction the player character's ship is moving towards. I've been working on implementing the sprite for the ship's upward movement, but I don't have an understanding on how...