• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

scripting

  1. Spartan

    GameMaker random values not working?

    In this script i wanted to make it so that a random type of enemy spawns anywhere on the screen every 2 seconds. so far i have two, and thus the two if functions what happens instead is whatever enemy is set originally as the "enemy" variable spawns all the time. the problem seems to be that...
  2. StardustBlaze

    Help with Ball's Interactions with Spawning Blocks

    This post is a follow-up to my last post on this forum. Anyway, I need some more help with this game. According to the video in this Google Drive link, I tried adding a breakable brick to the screen, but although I tried to make the ball's vertical direction reverse upon breaking the brick, it...
  3. StardustBlaze

    Spawning Blocks in My Working Ball-and-Paddle Game

    Hello there, I'm working on a brand new indie game inspired by the classic Atari games, Pong and Breakout, but it's a game that goes on and on endlessly, or at least until you lose the ball. The link to a more recent gameplay video is at the bottom. Anyway, I'm hoping to add a visual scripting...
  4. late77

    SOLVED GameMaker Studio 2. Problem with scripting.

    Hello. I'm trying to do script, that allows user to set values for a circle. Issue could be that boolean, because it get value that is number. In any event I think its not the problem, since GameMaker will interpret a real number equal to or below 0.5 as a false value, and any real number...
  5. J

    GameMaker (DnD) DoConv :1: illegal undefined/null use

    I'm pretty new to game design, and programming specifically, so I'm hoping these types of problems will make more sense to me as time goes on. As of today, all the scripting and "argument" and "target" stuff feels a little more familiar, but it all gets me jumbled up if something doesn't go...
  6. L

    nvm

    ybhynjm
  7. A

    GML Speeding up cutscenes/gameplay event coding

    Hey guys. I'm making a game that is based on missions, during which I have to control things such as enemy behaviours, dialogues, cutscenes, ecc. Hello :) I am making a game that has alot of missions and cutscenes. The way I code them right now is by having the main mission script with a...
  8. P

    GMS2.Issue with moving circles collision

    I have an issue with collision checking of circle instances, actually it just doesn't work and collide_object=noone in any case, also importatnt thing is that i don't know why but x always= chobj.x Important thing:Object doing this script is also a child of Pobj_circle So this is my GMS 2 script...
  9. D

    GameMaker camera view in new rooms?

    I have a game with a limited camera view that tracks only the player. What do I have to program if I want to enter a new room and the camera should follow now follow the player in the next room along?
  10. D

    GameMaker how to control the object foreground

    How can I change the foreground priority of objects during the game with programming commands so that this optical error on the characters (see picture on the bottom) can be avoided? It should somehow be possible to distribute the foreground priority with codelines, so that in this case the...
  11. J

    GameMaker Seeing syntax examples

    Hi all, How can I see examples of scripting instead of Drag & Drop examples in the manual? Is there a help switch to show GML versus D&D? Thanks, Joe B
  12. V

    JSON and GML

    Hey, I'm unfamiliar with JSON and its uses alongside GameMaker Studio 2. I want to know. Anybody have a good place to start?
  13. W

    GameMaker Script that returns a value returned from an object

    Hi GM community :) Here's a thing I need a bit of help with, and if I can pull this off I'll most likely never have to ask something here again (i know you're all tired of me at this point) Anyway I need a script that returns a value from an object. For example, let's say I wanted to ask the...
  14. J

    Windows SOLVED (Invincibility - Asteroid)

    Hello folks. I've just started with GML. Currently running trial for testing. I have been following Shaun Spalding' s tutorials. - im at the last step. Since this tutorial is in GM1, I had to do some modifications especially with instance_create. Anyways. When I follow the guide for making...
  15. R

    GML difficulties when creating player that shoot

    Hi, I have difficulties creating a player to shoot, I have taken a course on the internet and decided to use the code and implement it in my source, but I have lost, can you check the code and say where can I place the said action? Object Player event create ///create event spd = 8; acc...
  16. J

    Moe Keno

    MoeKeno is a Keno game I created way back in version 7 (non studio) of Game Maker. Today I finally got it working in Studio 2. The screenshot is from the former GameMaker 7 Professional but it still looks exactly the same. I am not a graphics artist so it has basic graphics. The game is...
  17. J

    GML Optimising a Tile Conversion Script

    I have written a script to convert a tile layer into an instance layer. The 16x16 tiles are converted into three different types of objects and a selected image index, acting as a precise collision map for the player. This form of collision map building is relatively simple and speeds up the...
  18. C

    [SOLVED]Wander behavior script

    Hi all! I got a little problem, I got a wander behavior script that if I call it in the step event of my monster doesn't work. If i do the same code (the whole script) in the step event of my monster it's work fine! The timer var doesnt go down in my script one know why ? Here' is my script...
  19. X

    GML Is parameter-based scripting at the expense of some performance?

    With scripts, you can essentially create functions of your own in a way. I've thought of cool ways I could re-use some portions of my code instead of writing it all down to execute in one block. But isn't this at the expense of some performance? I know that GML itself is probably some-what...
  20. M

    Drag & Drop / Scripting

    Hey all, I'm a newbie to GameMaker and I'm just planning out my first game. I do have some programming experience but was going to start prototyping in the drag and drop editor before fleshing out with GML (once I have learned the nuances of the language). My question is if I start this in drag...
Top