1. flyinian

    SOLVED Would this be 1 or more than 1 script?

    I've been learning how scripts work and was wondering if the below code can be placed into one script or i will need multiple scripts for it to work. My guess, I need multiple scripts. if (Requirements_Met == true && Allow_Leveling) { if(Current_Experience < Next_Experience) {// If...
  2. flyinian

    (Closed)Resizing sprites used in tile sets without effecting the tile set placements in rooms?

    QUESTION: Is there a way to resize sprites that are used in tile sets without effecting the tile sets in rooms? CURRENT ISSUE: Every time I need to increase the canvas size so I can incorporate more sprites for tile sets in rooms, it scrambles the pre-existing tiles in rooms. How can I avoid...
  3. flyinian

    A.I. & persistent objects & time system

    In my project, I plan on having persistent objects that are initialized at the start of the game that runs the A.i. of the project. From tracking and calculations for resources, troops, status and more. Would this be a good approach to this? If not, what are other ways of achieving this? I'm...
  4. H

    How do I make a hurt indicator pop up on screen?

    I'm new to GMS2 and I'm making a platformer. There are spikes in the game, to tell the player they've been hit, I added a sound effect, but I also want the screen to shine red for a split second when the player touches the spike. I've tried using: if(place_meeting(x,y,oSpike)) or...
  5. flyinian

    SOLVED Out of curiosity, Is there a better way of doing this?

    Out of curiosity, Is there a better way of doing this? This is for a mouse hover highlight for a button. I was trying to get my navigation system for my game to not execute the button highlighting per step. This took me awhile to figure this out, a different version of this was executing...
  6. D

    Steam The GMS 2 not running the project

    Hello, I have a problem, i tried to run my project and give me this error. elapsed time 00:00:00.1239964s for command "cmd" /c subst X: /d started at 06/09/2020 10:58:18 FAILED: Run Program Complete For the details of why this build failed, please review the whole log above and also see your...
  7. flyinian

    Do debug messages effect performance?

    Do debug messages effect performance or is it not much of a concern? If it's not much of a concern, how many debug messages will it take to make it a concern?
  8. flyinian

    SOLVED Is there a way to null a variable from being used?

    I am using the parenting system for my navigation system in my project. Some buttons will go to a room when clicked and others will create instances. If I use the below code with the buttons that don't go to a room, it will give an error. Is there a way to have a variable return a value to...
  9. flyinian

    (SOLVED)Is there a way to figure out what grid the output window is referring to?

    My output window says grid 4 is out of bounds. I can easily figure this out now, but what happens when I have a lot of grids?
  10. flyinian

    What are the ways to make grids more easily recognizable?

    I'm using a lot of grids in my code and was wondering if their is an easier way to know what a grid item does instead of looking at numbers. I've just been referencing back to the create event for the key. I've also tried using local and instance variables and that just seems to break everything.
  11. flyinian

    Does it matter what order a grid is created in the create event?

    Instead of going 0,1,2,3,4... Could it be done 2,4,1,0,3? Would this still work? Any where in the grid? any x or y position? ds_grid_add(name,0,1,value); ds_grid_add(name,0,4,value); ds_grid_add(name,0,0,value); ds_grid_add(name,0,3,value); ds_grid_add(name,0,2,value); compared to ...
  12. ryan821

    SOLVED Problem when making a battle system.

    Hi, I am a new GameMaker user and I am trying to make a project that simulates battle system like undertake. The concept is when I hit enter, the battle begins. Three circles will pop up and fly up. This is the code for the circle: Create: flight_speed = 5; dir = undefined; alarm[0] =...
  13. S

    SOLVED How to change the location of a object from the original placement as it enters the room?

    New in programming, sorry for the unsophisticated languages So in my program there is a room that plays the role as the "main room", which means there are a several objects in that room and they are like entrances to other rooms, when the player object collides with one of those "entrances" it...
  14. MatteKudasai

    GML Problems on making bullets work

    I'm trying to make a Shooter on Gamemaker Studio 1.4 and didnt find any tutorial about it. The idea is a Megaman-like game plus upwards shoot using only code, but I just started using GML and dont have any other experience in programing. Sorry if I mispell something, i'm Brazilian and have a...
  15. D

    Room editor

    I accidentally closed all of the room editor tabs in Gamemaker Studio 2. I need the editor back before I can start coding again so I was hoping someone could tell me how to open it back up again.
  16. M

    See if i got any memory leaks?

    Hi I wonder if there is any good way to see if my game have any memory leaks? I dont have any problems but the game auto generates alot of data structures and i whant to know now if the game has any leaks before i continu to generate even more DS:s. Looking for somthing like Valgrind but if...
  17. M

    Legacy GM Help With a Script

    I'm trying to make a chain lighting attack, by making the "bullet" jumping to the next target (max 3), but I think I'm making in the bad way. Here is the script in the bullet //Create target = ds_list_create(); ds_list_add(bersagli, "obj_enemy"); ds_list_add(bersagli, "obj_enemy")...
  18. C

    Best books for Game Design Principles and Coding in GM

    Hi, This is my first post outside of an introductory post. Please be gentle :) I'm looking for at least one good published resource for game design principles and programming concepts in GameMaker. Tutorials are great to cut your teeth into the development aspect and see immediate progress...
  19. M

    Question about controls and copyright

    I want to make an action game, and I want to make these controls: WASD for movements, and arrow keys for abilities and attacks. But these are the same controls from Hammerwatch. Will they report me?
  20. Tamehisa

    What does this question mark do?

    I'm trying to use Lighting System 2d by Jodo and I can't understand 2nd term of lerp function in one of the line in Demo project. light[| eLight.Direction] = lerp(light[| eLight.Direction], dir ? Min_Angle : Max_Angle, 0.01); This line is in the Step event of obj_rotating_spot_light. I set...