I need to get my object (objBox) to go to where my cursor is at speed=10 when the space bar is hit. But when I try direction = point_direction or move_torwards_point, the object just goes torwards the cursor and then goes past it and off-screen.
Thanks for the help!
So, if you've ever played Cave Story, you've seen this title screen.
I was wondering if I could replicate this using layers in the room editor. How would I go about doing this?
EDIT: I mean in more detail:
How would I have a looping image move to the left...
I have an "enemy" object with a point direction set torwards the player and I want to change the sprites attached to the object depending on if the object is moving up, left, down, et cetera. How would I detect this with the general direction it's moving isn't set on anything?
I am making a top down game in gms2, and I have an issue with collisions. I have two player sprites (Idle and Walk). The walk sprite is a bit larger than the player sprite. Both are irregular shapes (top down humans), and both their collision masks are precise (for bullet collision).
was wondering how to make this textbox appear when you press a button (Z), and only alowing it once at a time so you can't spam. i was thinking about an alarm but dont know how. help?
if (place_meeting(x,y,obj_player)) &&...
I have made two applications which link with each other using 2 text files they create by themselves on start. Each application creates one text file, and the other reads it.
The applications run fine and are able to read each other's text files on Mac, but when I exported it on Windows, the...
Hi everyone, This is my first time posting onto this forum so sorry in advance if I make any mistakes. Anyway, lets get straight into it. I'm stuck trying to figure out a way to make my character jump in an arc just by pressing a single button. I know how to make my character jump straight up...
My player can move any direction except right with this code.
I can't figure out the issue.
//Player Movement (X/Y)
velX = 0;
velY = 0;
dirX = 0;
dirY = 0;
dir = 0;
key_up = (keyboard_check(vk_up) or keyboard_check(ord("W")))...
so im making a sandbox game where the player drags blocks from the map and builds with them.
i felt that it would be nice to let people save there work, so i watched a few tutorials, and tried to add a save function. none of them worked. if any one can help me it would be grate.
just to be...
I must be the most unlucky GM:S user of all time since my problems are usually those that rarely ever happen to anyone!
Well anyway, my issue is once again related to gamepads.
I've created a notification system that tells you when you've plugged in a gamepad, and it works:
I was wondering how to save points right now I have
// we shouldn't save anything before loading.
if controller.loaded == false
I am having a problem with the code "room_restart()" & "game_restart" when ever I try to put that in it just freezes my game.
Code(Its a script):
if (global.checkpointR != 0)
Im trying to get my Gifs to show properly in twitter. Here is my Giphy link (and look how lovely it is):
But when I post the same link to twitter.. look how awful it is!
Does anyone know what I'm...
Hello! I just joined and beggining to program my first game in GM!
I'm a total noob soo...
I need some help on switching between Idle and Walking animations for my player.
I have seperate animations for when my character is walking up, down, left and right, and same goes for idle.
Hey guys. Right let me get straight to the point basically in my game it was working fine until i added a jump code.
Here's my code to create my floor:
var rep = 1;
grass = d3d_model_create();
So i was digging shader's some time a week ago. And now, i'm trying to do this thing <last topic ref.>. So i have a SURFACE which acts as a cloud atmosphere, which sets a shader (Gussian Blur) to make it more volumetric. (used Xor's shader for this, combined the x/y shader code together).
I'm working on a platformer game where I'm trying to achieve a collision between the enemy and the player where the player takes damage and then is knocked backwards (in the opposite direction of his/her approach).
This is my movement code; http://pastebin.com/2Eyp07XN
Here is my collision...
When I try to Install GameMaker I get an error saying:
Error writing temporary file. Make sure your temp folder is valid.
I have tried:
Restarting my computer
Scanning for Viruses and Malware
Giving myself Admin access
Copying and Pasting the installer into the Temp...