programming help

  1. F

    How do I randomly choose 1 of 2 objects to appear in the room?

    Hi, I'm trying to make a game where 1 of either 2 objects will appear in the room randomly, but i'm not too clear about how. do i code this in object 1 or object 2, or an entirely different 'manager' object?
  2. FeliX Games

    I'm super confused about this and really need help!

    I have an object oController with: -> Create Event: /// @description player stats global.level = 1; global.exp = 0; global.exp_till_next_level = global.level * 10; global.player_hp = global.level + 100; global.player_dmg = global.level + 10; -> Step Event: /// @description control player stats...
  3. NotKrixxppi

    GMS 2.3+ Using the position of the mouse to trigger an event.

    Hello everyone, I was looking for some assistance on a rather simple question, I was wondering if you could use the position of the mouse, to trigger an event. For one of my projects I would like to make it so whenever the player's cursor reaches a range of an (x, y,) coordinate that an event...
  4. A

    GMS 2 Help with black screen in GM 2

    Hi all, I'm a GM2 beginner. I made a game using Drag/Drop on GM Studio 1.4 and imported the old game from GM1.4 into GM2. However, when I run the imported game on GM2 and click a button (i.e., button named "accept_practice_F1" from the screenshot), the game screen goes black and it crashes...
  5. T

    Giving a colliding object your variable value.

    I have a game which has the main character (a light bulb boy) interacting with several intractable electric objects. The electric objects have two main "states" (though no real state system has been implemented yet), where they are either turned on or off as indicated by sprites. I have a system...
  6. Athena's Owl

    SOLVED What is a 'Room Instance'?

    I am currently messing with networking. I've followed tutorials, I have read forums, and now I'm attempting to take the NetworkingDemo offered by yoyo at the bottom of this link: https://www.yoyogames.com/blog/529/beginners-guide-to-networking so that I can incorporate it into my project file...
  7. Wafi Hussain

    How to add audio sounds to textbox dialogues?

    I am using this framework given in this video, to make the NPC object produce audio sounds for textbox dialogues. So I would like to know how to add voice overs to a specific dialogue. Here is the code, obj_NPC Create Event: msg = [ ["Hey there!", "Rob", sImage1], ["Hello! It's-a-me...
  8. 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...
  9. 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...
  10. 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 {...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top