programming help

  1. LuisSLS

    GML How to make a transformation sequence? (Transform character into another)

    I want to transform the player character sprite (and object) to another one, like a character transformation sequence. But i dont find any tutorials related, can somebody help me please? Lets say i have a character, and if i press, for example: "Q", the character transformation animation start...
  2. Wafi Hussain

    How to add subtitles to Sonic game?

    Hello! I am trying to figure out ways to add subtitles to my Sonic fangame since I have voice actors, who did their dialogues. So what I did is I created objects for dialogues featuring their sounds. I created two events for the dialogue object: obj_dialogue Destroy Event: // I use this as a...
  3. Wafi Hussain

    NPC following player shaking when moving

    I am working on a Sonic fangame featuring an NPC following him. As a result, I am encountering an issue where the NPC is shaking when Sonic starts moving. Then when he goes fast, NPC stops shaking. Here is the following code. if point_distance(x, y, obj_Sonic.x-70, obj_Sonic.y-70) > 20 {...
  4. Wafi Hussain

    Sonic Forces Subtitles during gameplay

    I am working on a Sonic fangame and I am trying to work on Sonic having dialogues during the gameplay. I would need to use subtitles and audio. I was already guided to do the following The two variables on obj_trigger: 1.) Audio 2.) Subtitle string these two variables should be made in create...
  5. S

    Bug that freezes my game

    I've recently changed the move code in my player. The animation code used to work fine, but now it's kinda... broken. I posted a video that shows exactly what's happening, as well as the code. To resume it, if the Player is between two walls, go to the left one, touch it and then look right, he...
  6. Master Maker

    Job Offer - Programmer Advanced motion_predict script.

    I am looking for a programmer to write me a script. This script is an advanced form of movement prediction. It will have multiple subscripts: path_intercept: input of instance and interceptor's speed, along with interceptor's starting position. Returns what direction to launch the projectile at...
  7. lluuze

    Character Selection and the Impact on the Player's Choice

    Hello, I've recently started preparing to create a two character game with character selection which will impact on whether sprite_1 or sprite_2 must be saved at the end of the quest depending on who the player decided to play as. I was wondering how I could program that in Gamemaker Studio 2...
  8. M

    Abstract

    Is there a way to declare abstract variables for strategy pattern use in superclass objects? I'm working on a version of pac man, and I want to have a strategy pattern for ghost AI, but I need to be able to declare an abstract variable to later be assigned a specific targeting method in the...
  9. S

    Programming orbital paths

    Basically, I am trying to make a game where you shoot a missile around several planets, and you have to use the planet's gravity to get your trajectory right. I need to know how to program a system where I can simulate planetary gravity while allowing the player enough leeway that they don't...
  10. V

    GMS 2 Wall Jump Collision Issue

    Hello I'm new to gamemaker studio 2 and lately i've been having issues with implementing a wall jump feature. In this piece of code, the object player, as it slides down the wall and once i press the jump button, jumps and when its near the wall it seems to stop mid air. How do i prevent this...
  11. A

    Having issues with collision in platformer

    Hello, I am having issues with this platformer I am working on. Code is below but basically. I am having troubles with the player character getting stuck on the side of the platform or I get the issues as shown in the attached GIF image. I have been troubleshooting it for 3 days and havent made...
  12. A

    GML Knockback Effect Help

    Hello I was working on my knockback effects in this game I am just getting the player mechanics done before adding any thing else. But I ran into a problem. The entire script will be below and the link video to give a visual to what my problem is. Now if you look at the video it looks as if...
  13. mizzy

    GML var question

    Hello Happy Game Makers, I have a very noob question for you (was unable to find on my own): When I declare a variable.. do I have to write var before it? ex: var thingy = 0; or can i just write: thingy = 0; as far as I can tell they do the same thing, but I am very early on in my project...
  14. U

    I need help destroying only one instance of many

    So I have a tree harvester game where you click trees to lower their health to 0. When it hits zero, I want the one tree to be destroyed with x amount of logs to spawn. When I run the following code, all of the trees destroy after 1 click. obj_oaktree - Create event image_xscale = .5...
  15. Aleksander

    GMS 2 Resolution changing with font

    Okay so my resolution changing is working but font is blurry when higher resolution How can I solve this problem? HERE IS THE SCRIPT switch(argument0){ case 0: window_set_size(800,600); break; case 1: window_set_size(1024,768); break; case 2: window_set_size(1280,800); break...
  16. R

    Flinch effect (knockback when player takes damage)

    Hi there! I am new on Gamemaker Studio 2 and been following Shaun Spalding's youtube videos as I wanted to make my first platformer game. My obj_Player moving system looks pretty much like his: var move = key_right - key_left; hsp = move * walkspeed; vsp = vsp + grv; x = x + hsp; y = y + vsp...
  17. E

    Question about setting up a create point for shooters

    Hello everyone. First time poster and aspiring developer. I've been doing the tutorials and got as far as the second one with the top down shooter tutorial. My question is how can I place the point of bullet to be offset from the center to make it spawn/create from the barrel of the gun. The...
  18. H

    SOLVED Debugging help

    Howdy! I'm having trouble understanding what's happening with my code. So, I got this error message: ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Step Event0 for object...
  19. A

    SOLVED Walking Animation Trouble

    So I am fairly new to Game Maker and I am learning to code as I go, making my first game. I am currently making the walking animations for my main character sprite. When I make my sprite walk forward, the animation plays fine, but when I try to move my sprite left or right, the animation for it...
  20. A

    Windows Wall jumping has sudden stop without acceleration.

    I followed Shaun Spaldings tutorial on Wall jump & Acceleration and after learning a few things and typing it out it works except for one part, when wall jumping off a wall you go horizontally but have a sudden stop and fall straight down, if you could give me advice or help that would be...
Top