gamemaker 1.4

  1. B

    GML Characters Sudden impetuous

    Presently, I am undertaking Gm2 course and hitherto this is the movement code: /// movePlayerState() // if player in the air if (!place_meeting(x, y+1, Solid)) { velV += accelG; //Control player jump sprite sprite_index = sPlayerJump; image_speed = 0; image_index =...
  2. H

    Legacy GM bouncing object sorta working? HELP

    I'm creating what's essentially a top-down shooter and I'd like it if some objects bounced of others correctly. I found this code I placed in the step event mostly works, except that it has you input 0 if the object is hitting a vertical surface and 90 if it's hitting a horizontal surface...
  3. MissingNo.

    Alpha Blending Performance Script

    I wrote this code for the draw event of certain objects in my game to hopefully future proof the games performance for when it's starts to get more complicated: draw_set_alpha_test(true); draw_set_alpha_test_ref_value(254); draw_self(); draw_set_alpha_test(false); The code is used by a lot of...
  4. EZTALES

    Legacy GM ISSUE WITH DESTROYING OBJECT IN NEXT ROOM.

    hey yall. just having a small issue with destroying an object in the next room, im using a level system so when you reach a certain level, some things are deleted. heres the code. and yes the room uses physics. /// room end with (obj_player_stats) { if level = 2 { audio_stop_sound(sad_snowfall)...
  5. Skyler Clark

    Top Down Survival: Building Help

    Hello, so I’m trying to make a top down survival game. So far I have pretty much everything I need for breaking trees/rocks and collecting resources. Now comes the part where the player can build things using resources they collected. I have managed to be able to place the object, but I’m having...
  6. Skyler Clark

    [SOLVED] Destroying one object instead of all - HELP!!!

    So I’m trying to make a top down survival. Typical, right. Anyway, I have a tree object (o_tree) an I placed them all over the room. I set it up so that for now, when you left click on the tree enough, it will destroy it. But when I go into the game and destroy a tree, it destroys every single...
  7. kriz_cold

    GML Fullscreen/high res window drops the fps

    Hi everyone, I'm having a huge trouble with performance, apparently the Framerate of my game goes down a lot just for setting the game in a high resolution. I first thougth it was how the resizes work, but then I re-make the code so it just resize the window and not the game surface, gui, view...
  8. EZTALES

    Legacy GM need help with platformer ice block

    hey yall, needing some help with an ice block, here is the code. i want my player to slide on the block. CREATE OF PLAYER: ///intialize varibles grav = 0.7; hspd = 0; vspd = 0; jumpspeed_normal = 8; jumpspeed_powerup = 10; jspd = jumpspeed_normal; speed_normal = 5; speed_powerup = 7; spd =...
  9. B

    Help with "if instance is aligned with grid" function GM 1.4

    Hi, Thanks for taking the time to read this post. It is my first and I am just now starting my work on Gamemaker 1.4. Firstly, I am trying to create a very basic Tetris clone to get to grips with the system. So far I have falling blocks that stop when touching the bottom or other blocks...
  10. A

    Help with condensing lines of code

    If its possible does anyone know of a shortcut on how to shorten this code that I have? var inst; inst = instance_create(x, y, oBullet); with (inst) { direction = 0 } inst = instance_create(x, y, oBullet); with (inst) { direction = 1 } inst = instance_create(x, y, oBullet)...
  11. A

    Homing bullets help

    How do I make my homing bullets spread to different enemies if the enemy is one instance? Like I have enemy A created multiple times but the homing bullets will only home in on the "first" created rather than the newly created ones.
  12. J

    Legacy GM How to play attack animation over walking animation?

    Hi everyone, just wanted to say im fairly new to Gamemaker so im not great at coding yet. im currently having an issue with my animations. i have created a working code and animation for my player's attack and have also got basic movement with animations to go with it. my problem is that when...
  13. EZTALES

    Legacy GM need help with saving and loading stats!

    so i want to save my stats in gamemaker but when i restart the game even when saving it will not save th current stats (still a bit of a noob at saving so im using a drag and drop system) my game uses physics so what im doing is that when you save the game you go to a non physics room and save...
  14. tamation

    Stuttering View when player moves

    Hey everyone, I have a problem with the views following my player object in my game. My player's base move speed is 1, but there's a friction variable that adds .1 to a speed of 0 until the player is moving at a speed of 1. The problem with this is that whenever my player is moving at a speed...
  15. Skyler Clark

    Knockback Glitch Help!!!

    Whenever a player is hit, they get knockback. But whenever the player runs into an item on the ground (a weapon they can pick up) while the knockback is still in effect, the item’s physics goes wild, and the item flys off. Can anyone help me fix this?? Please, any help is appreciated!!!
  16. M

    Team Request [Norway] Mental Outcast Games are looking for people to join our newest project.

    Facebook job listings: Pixel Artist: https://www.facebook.com/pg/MentalOutcastGames/jobs/188490395129630/?source=post_homepage_stream Programmer: https://www.facebook.com/pg/MentalOutcastGames/jobs/651981658473647/?source=post_homepage_stream We in Mental Outcast Games are looking for...
  17. Skyler Clark

    Alarm Cancelling

    Hey everyone, so the game I’m trying to make is pretty simple. The player is a ghost and has to possess all of the humans in the room before it can move on. I want it to where the player has to hold down F for 3 seconds while making contact with the human before the human is possessed. Right now...
  18. EZTALES

    Legacy GM need help with music! anyone help would be great!

    so what I want to do is when the player kills a certain enemy or amount of enemies (like undertale) i would like to change the sound file. basically i have two rooms, one is if the player spares the enemy and another when the player kills the enemy. i want to change the music for the next room...
  19. N

    If statement && ||

    Hi all! I am making a CPU for a game. It's a 2D shooting game. But that doesn't matter. To get straight to the point, let's take a look at my code. Me :: obj_player_red Bot :: obj_bot ///Step Event obj_bot if keyboard_check_pressed(vk_space){ // If you pressed...
  20. </iKON1K>

    Legacy GM Check for left and right

    Hello! I am making a platformer in GameMaker: Studio, and I am currently facing one issue. I want the player to fall down slower if he is against a wall while he is falling, and he is pressing direction key toward the wall. So if he is near the right wall, he will need to press right key and be...
Top