basic

  1. 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...
  2. Ellys

    GML (Minus) Basic maths

    I want to take away 3 from an already set variable in a switch statement. switch (oCharacter.HPdiff){ case 0: oCharacter.Gold = -3 break; This essentially sets the characters gold to -3 instead of removing -3. Game maker doesn't like it if I set it out without the = oCharacter.Gold -3 Any...
  3. J

    Question - D&D Basic Collisions not Working, please help!

    I have a character object and it won't collide with my solid building object (or any solid object, for that matter.) I've set up a collision event between that and my solidObjectParent object (parent object of all objects that have collisions with character object). From that, I have a...
  4. moogthedog

    3D 3D baby steps in GMS2

    I'm trying to start out with a spot of 3d, and I'm close... but it's defeating me at the last moment. I've got a room set up with a camera layer and an instances layer. The camera layer is at the bottom of the heap, as I've read the camera object needs to be the furthest away. In the room, I...
  5. Dr_Nomz

    GML Making a door: image_index/mouse_pressed

    I can't believe this isn't working, but here's my code: if image_index=0{ if keyboard_check(ord("E")){ image_index=1 } } if image_index=1{ if keyboard_check(ord("E")){ image_index=0 } } Now I've tried putting this in a mouse_enter event, and trying a few variations with...
  6. FeetUpGaming

    Legacy GM (SOLVED) object_get_parent Questions

    When using object_get_parent(object_index) do you put in an instance id or an object index? (Does the object need to exist inside the room) Also (The main question) what happens when the object has multiple parents? Here is the kind of family of the objects i'm using: obj_brickWall < wall <...
  7. G

    Asset - Demo Blackjack Basic—Lite Blackjack Example [Mobile/HTML5 Ready][50% OFF]

    Blackjack Basic—Lite Blackjack Example Blackjack Basic—Lite Blackjack Example Primal category: Demo Price: $9.99 Modules: All PLAY NOW: https://bitrunade.itch.io/blackjack-demo Support: PM me for support. Marketplace: https://marketplace.yoyogames.com/assets/6593/blackjack-basic Description...
  8. A

    Help with basic platformer.

    I'm making a platformer for a school project and my basic code has come back with multiple problems when playing the game. 1. my left key makes me move right, but i want it to move left. 2. jumping and hitting a platform with the top of the player makes the player stuck on the platform. 3. After...
  9. Rackover

    GML Trouble with buffers

    Hi, i'm getting trouble with the buffers. I've read the documentation but to no avail. I only made a little test, to experiment, but it doesn't even work and I do not understand why. Here is the code : msgBuffer = buffer_create(1024, buffer_fixed, 1); buffer_poke(msgBuffer, 0, buffer_string...
  10. E

    [Solved] Basic Programming Problema [:D]

    Hello, lovely gamemakers I wanted to check if the player is falling by creating this varaible: falling = (yprevious < y), I'm drawing it on the screen to test it and it always returns 0. I've been messing around with it: falling = (y + yprevious), returns the expected value, let's say 1235...
  11. A

    Windows How to change Room Size?

    I'm sorry that this is an incredibly basic question but there does not seem to be a clear answer anywhere I've dug. It seems that the generic size of a room is 1024x760 or so. I have seen countless things pointing out that you can make the rooms bigger in terms of sheer pixels available. How do...
  12. L

    Asset - Extension Lerner HTML Colors

    Color is one of the basic things a developer needs to bring life to a game. But creating colors manually is very tedious. Instead of reinventing the wheel, Lerner HTML Colors lets you use the standard HTML color pallet, plus some extra variations. All the 140+ colors from the HTML pallet are...
  13. Sparckman

    Drag and Drop - Basic Movement/ collision / walking animation/ - tutorial part 1, 2, 3, 4 - GMS2

    GM Version: GM:Studio Target Platform: Desktop (should work with Mobile and HTML5) Download: none -- see videos below Summary: A video tutorial series showing movement with Drag and drop coding. o_O Hey there guys, here is part one of this DnD drag and drop basic movement tutorial. This...
  14. D

    [solved]basic leveling system help

    so I run this code and if my lvl increases my hp doesn't :/ can someone explain the logic behind this ///global //lvl global.lvl =1; //player hitpoints global.hp =100*global.lvl*1.25; global.hpmax =100*global.lvl*1.25; //EXP global.ex =0; global.exmax =100*global.lvl*1.25; //player Damage...
  15. FrostyCat

    GML with Block Recipe Cards

    with Block Recipe Cards GM Version: GMS 2.x, GMS 1.x, GM Legacy Target Platform: All Download: N/A Links: N/A Summary: A quick reference for a range of common use cases for the with block. Summary The with block is GML's most powerful means for manipulating instances, but mainstream GML...
  16. K

    3D How to make a basic 3D game using raycasting?

    Well, first post on the new GM forums! I know it's probably a big ask here; but how would you make a basic 3D game where you can move around and collide into walls, which uses the raycasting technique (like the old Id Software games)? It's always interested me and I kinda wanna try out...
  17. J

    Legacy GM Can you check my basic platform movement and collisions system?

    y-=vsp vsp=0 if keyboard_check(vk_left) { if !place_meeting(x - 5, y, obj_wall) x -=5; else x-=distance_to_object(obj_wall) } if keyboard_check(vk_right) { if !place_meeting(x + 5, y, obj_wall) x +=5; else x+=distance_to_object(obj_wall) } if keyboard_check(vk_up) {...
Top