coding

  1. G

    GML Visual I have a working camera view! It’s just not close enough

    I followed a yt tutorial, and it was for a certain set up, and I don’t quiet understand what to do exactly. here is the code that is DIRECTLY from my stuff camwidth = 340; camheight = 160 follow = o_p; xTo =x; yto = y; if (follow != noone) { xTo = follow.x; yTo = follow.y; } x +=(xTo...
  2. K

    SOLVED Cameras Not Updating

    Hello! I am currently making a game utilizing cameras and i'm really new to the concept. This is my attempt at using scripts to change the view and i think i have a basic grasp of the main concepts. My first function resolution_loader is my resolution switcher where global.zoomfactor is either...
  3. M

    Issue with depth handling

    I have a rotating camera thats value is stored in global.cameraAngle, I am trying to handle depth and depth = -y worked fine for a while but since the camera rotates, i have to keep into account the rotation of the camera now depth = -(lengthdir_x(-y,global.cameraAngle) +...
  4. M

    SOLVED Struggling to fix angles problem

    Hey everyone! So I've been stuck on this problem for quite a while... Im making a sprite staking game and things have been going great, my camera rotation and the stacking is great but I've ran into an issue regarding how the player works. I have a player object, and a controller object, so the...
  5. R

    How to completely change a characters sprite when entering a different map

    okay, so I'm having a BIT of trouble! I can't seem to change my character sprite I want to change the sprite after a certain point to a different character but I REALLY don't know how! Please help me!!!
  6. G

    How Did You Learn GML?

    I'm very new to coding and the comparisons to learning IRL foreign languages has been very daunting to me since throughout my life I could never fully learn/understand different languages. I mention this since coding is basically learning a new language. I was hoping somebody had tips for...
  7. JesusOnExtasy

     My horror game design (video)

    I'm currently working on the design of my horror game. What do you think? good or not?
  8. M

    Advice for Optimal Sprite Stacking

    Hey everyone! I'm sort of struggling to make optimal sprite stacking and am wondering what would be the best approach. I heard using Vertex buffers would be great to begin with, although a little unsure on how it works. Meanwhile, I set up my camera to use matrix which works fine and allows me...
  9. R

    Create text in corner

    Hello! Me and a friend is working on a game right now and we're both really new to GameMaker. We would like to add in a small text in the corner of our rooms ("R - Restart" on one row, "Esc - Leave" on the next). Can anyone just help us out with the coding for that? Thank you!
  10. L

    GameMaker Help with Spawners

    I am very new to game development and this is the first ever time I am making a game so please be patient with me. I am trying to make a simple catch style game where and object falls from random areas in the sky, fall down the screen and the player object catches them. I tested collision and it...
  11. A

    How do you make the player only shoot a projectile horizontally?

    I am trying to make a game where the player can shoot a projectile similar to how Mario would fire a fireball when he gets a power-up. Does anyone know how to code that feature?
  12. J

    SOLVED enemy come from the top

    Hi i am new to gamemaker and i need something from my game I need where the enemys are coming from the top of the screen.
  13. FireLock

    GameMaker How to make a Bouncy Block?

    Hi, I'm new here. I'm currently working on a 2D platformer in GameMaker. I'm looking to achieve to make a game like BattleBlock Theater. I'm getting the core gameplay mechanics and level mechanics working first before doing anything fancy. BBT has a block that looks a lot like lava, but when...
  14. FlatulenzaFiamm

    GML There's really NO way you can read an instance name via code?

    Greetings comrades. I was messing around with my project today, and wanted make a system were a specific variable is created for an instance ONLY if it's name is "culo" through the Room Editor. So I was going for something along the line of: if instance_name = "culo" { scoreggia = 0 }...
  15. PikaWarrior

    SOLVED Cant figure out how to get character to move.

    I'm working on a metroidvania style platformer, have the physics engine, but can't find ANY code to make my character move. Currently the character is a placeholder cube, and the physics engine is from a GameMaker tutorial.: https://gamemaker.io/en/tutorials/physics-in-gamemaker-studio-2-part-1
  16. L

    Coding Help

    Hi, I study game design and we've recently been introduced to game maker, as part of my assignment I need to make a game within game maker. For this, me and my partner decided on creating a game where you play as a dog who defuses bombs by peeing on them, and you collect medals as you 'defuse'...
  17. A

    GameMaker Full screen/windowed startup?

    Hello everyone, I'm an indie dev that has launched my first game last November and am working on two more games, one launching first half of 2023. In GameMaker Studio 2, you can set whether the game starts in windowed mode or fullscreen mode. But as far as I've seen, there's no way to do this...
  18. Ehsan

    Job Offer - Programmer Need a programmer (Budget 2000 USD + fixed price payment for prototyping)

    I'm looking for someone to develop my game when this is ready, with pay. For now I'm looking at prices, discussing an estimation, and creating a budget plan. The base mechanic is ready so far. It'll need a demo for a match-3 like game with a little brain teaser twist. I will provide the...
  19. R

    GameMaker I need help with my code :)

    Hello im new here, currently following an advanced guide on YouTube to make a platform game and happen to get an issue very soon in the coding that the OC didn't get : ___________________________________________...
  20. P

    If then statement not running through all requirements

    I am currently working on my own game and using several different if statements to run through the game, however it doesn't appear that any of them chain up. if (Random == 0) { global.MaxHealth += 2; global.HealthCurrent += 2; } if (Random == 1) {...
Top