coding

  1. Skoplir

    Portfolio - Programming [FOR HIRE] Technical programmer looking for work

    About me Hey, I’m Skooparoll. I’m a programmer who’s primarily interested in technical/back-end parts of a project like inventories, level editors, and save systems. That said, I also have experience designing and coding combat and enemies. I value a tidy and organized implementation, so you can...
  2. Powerset

    GML Help making Enemy Knockback/Script

    Hello! So I got some Enemy knockback working for my game. The only problem is im trying to transfer the logic into a script and im hitting major roadblocks. I cant seem to figure out whichever part of it im doing wrong. Inside the enemy hurt state I have this: case ENEMYSTATES.HURT: {...
  3. O

    SOLVED A more elegant way of coding my timer countdowns?

    Hey guys, I will be the first to admit that I am not an elegant coder and tend to repeat lines of code that resembles spaghetti. I am trying to change this. Can anyone suggest a way to code my timer countdowns more elegantly? Here's some code as it is at the moment . . . repetitive and ugly. . ...
  4. M

    noob question, object properties.

    so i was wondering, how to assign "properties" to objects. what i mean by that: for example, i have Player, who is colliding only with obj_solid. So, to add different kinds of solid platforms, i create an object as a child for obj_solid, so that player will collide with all of them. but that is...
  5. D

    Gamemaker and Gamemaker two difference?

    What is the difference between Gamemaker and Gamemaker two coding? is it exactly the same, also is it easy to transfer old projects to the new game maker two?? Thanks
  6. S

    Help with programming

    Hello everyone! I'm kinda new to programming and was following this tutorial: when I ran into a problem. when I try and run the program I get this error message: ___________________________________________...
  7. 2

    GML Coding a basketball game.

    Hi everyone, I don't know where to go for this so I come here. You see, I am making a mini game for my GDD plan in game maker. I would like to make a basketball with my characters. This sport is perhaps one of the most intense thing to program in gaming in history because of the AI. What would...
  8. K

    SOLVED How can I get (instance_number) for all objects in a room.

    Hello! I'm a complete amateur and have "some" questions. 1. What is the difference between instance_count and instance_number ? Is it the same thing but for different versions of gm? or are they completely different functions? 2. How could I get instance_number for every object in the room...
  9. M

    GMS 2.3+ Coding A Proper Hookshot?

    Hello there! I am currently working on a side scrolling platform game with a main focus being hookshot based grappling which the player will use to both traverse and fight/grab enemies using a button press based on the direction the player is facing similar to say 2D Zelda. Currently, I am able...
  10. Necromedes

    Pixel Collision with Sprint Button?

    I've started work on a top-down, action rpg of sorts. I'm using Shaun's platformer code as a base until I finish watching his tutorial on action rpgs. I have the code set up for horizontal and vertical collisions and those work just fine. However, I have set up a sprint/dodge key that increases...
  11. L

    Arrays to draw Text

    Hello everyone, I am currently working on a Point and Click Adventure in GM2. As I am still new to GML I am having quite a few problems with the coding language. Some of you might know, that clicking on an item usually triggers a text in Point and Clicks. At the moment I coded it this way: The...
  12. J

    question about tilesets... [closed]

    As of the time of this posting I have a rough level editor that swaps between several sprites (spr_wall, spr_floor, and so on). I also flip through the frames for different walls or floors depending on the sprite. I am wondering if it is possible to code a level editor that can use tilesets and...
  13. D

    GML how does this code work??

    inputDirection = point_direction(0,0,keyRight-keyLeft,keyDown-keyUp); inputMagnitude = (keyRight - keyLeft != 0) || (keyDown - keyUp !=0); hSpeed = lengthdir_x(inputMagnitude * speedWalk, inputDirection); vSpeed= lengthdir_y(inputMagnitude * speedWalk, inputDirection); x += hSpeed; y +=...
  14. L

    How do I stop motion_add?[SOLVED]

    So basically I want to stop motion_add so it happens only once or are there any alternatives beacuse I want to push player from guns rotation so how do I stop it or is there any other way to do it. Thanks in advance!
  15. T

    GML Ally and ememy AI

    I have some code below for a simple ally Ai. However I am not sure how to have the ally drone skip the top code if there are no enemies nearby. If I use if(!instance_exists(obj_Player)) exit; then the ally will just float off brain dead. Very new to coding and not sure what to do here...
  16. G

    GMS 2.3+ How do I loop over an array?

    Dear GMS2-community, I'm trying to loop over an array using the following bit of code: Click event object Q: a[0] = 0; a[1] = 3; a[2] = 5; for(i = 0; i < 3; ++i; ) if(instance_number(global.obj_target[a[0]])=0){ instance_create_layer( xx, yy, "Instances", global.obj_target[a]) } But for...
  17. Queble

    Can't figure out aspect ratio resizing

    Hey all! I am fairly new to gms2, and am currently creating a portfolio project for Android. My most recent problem, is that when I run the game on my android phone, I get these blinking white bars on the edges of the screen, which are obviously undesired. I have done a lot of...
  18. S

    Lil' problem with Enemy flashing

    So, I've got a little problem. I made it so that, when my Bullet object collides with the Enemy, the enemy's object flashes in white. The code is quite simple and small. The problem is that, on the first shot, the enemy doensn't go back to his normal state, and keeps white. It's solved on the...
  19. Mike?

    Issue with dash mechanic for movement

    Hello! This is my first time posting here and I'm in the middle of building my movement in Game Maker studio 2. I have horizontal movement down, however I can't seem to get the dashing ability work properly. In the create event, pretty straight forward stuff: move_speed = 300; key_left =...
  20. TyGamess

    Crafting

    If it seems like I post here a lot it’s because I can’t find the answer in the rest of the feed. I looked up “Crafting” before but they all had Questions on how to improve already Existing code. Basicly saying is I need help and I didn’t find the answer. So I have a parent Object for a set of...
Top