object

  1. KyleRansford

    GMS 2.3+ How to Move an Object that is Following a Relative Path?

    For instance, I have a game with an auto scrolling camera, and I want to have an enemy appear and stay on screen while following the same speed as the auto scrolling camera. But, with the normal relative path function, the object just stays where it's at following the path no matter if I put y...
  2. S

    GMS 2.3+ Has there any way to use sprites as a button or make sprites clickable?

    i want to click on sprites after drawing it with this code. draw_sprite(spr_btn,0,xx, yy ). Has there any way to do it without creating object or button ? Thanks in Advance.
  3. Rippley

    Interact with object with specific variable

    I want to make a portal, and what I did was make portal_1 and portal_2 and in each one put the variable "portal" that would be defined manually. And with that, I want to make that when the player collided with portal_1, it would go to portal_2 with the same variable. Ex: Portal_1 with the...
  4. L

    How do I set the instance motionless when I set a view in room?

    Hello everybody, I have a such for me complicated problem. I drew a rectangle slot in Draw Event in object56. That's okay, when I go down with my main character, it is still on its place, it is motionless. The code looks like this: draw_rectangle(view_xview[0]+5, view_yview[0]+32...
  5. NovemberTender

    SOLVED Making sequence follow the object x,y?

    as the title says, i've yet to find a way to make the sequence follow an object when it moves. the only other solution to this is to manually change it to a sprite when it moves. But i was hoping maybe the origin of the sequence could follow the object maybe? i searched and looked over the...
  6. FoxyOfJungle

    SOLVED Unable to get object for index 100001 ???

    Hi! It's the first time I've seen this error specifically. I'm starting to think it's a bug (or I don't understand this behavior), but I'll try to explain: #1 - I have this code in a script file (GML): Code 1: enum ENUM { ITEM1, ITEM2 } function ftr_setup() { global.list_of_itens...
  7. 21Delynx21

    GMS 2.3+ [SOLVED] My Object does not move when I try to use a script instead of using the event manager

    Hi everyone First I made the movement in the event manager for every button itself, but when pressing two buttons at the same time, it went not the way I'd like to. I added the function in the event manager and have no clue why it doesn't work, the object is not moving. I guess I forgot...
  8. JelleB

    Other object moving when its not suppose too..

    This object is moving when something else is suppose to be moving. No where in my code is obj_MoveButton mentioned.. And yet it moves when obj_WallPeice is suppose to be moving.. Help.
  9. S

    flashing label

    I have an idea to make flashing label. When the player will be near some object (for example rock) there will appear flashing label (press "H" to hide or sth like this). I know how to do it if the label will be an object. But i don't want to make one more object for such thing. I wanted to make...
  10. JasrielKraftuur

    SOLVED Setting Variables to Objects through ds_lists

    Hello. I am trying to create an inventory system that displays information based off the object you currently have selected. I've gotten the ability to show information to work, but I need to create a variable to set that value to. What I'm trying to do is print out this list of objects, the...
  11. R

    SOLVED Assigning an object to a variable?

    In my game I have created an object for my player's lives, and I also have a global variable called 'global.life'. Is there anyway that I could get the obj_lives to link to the global.life variable so that the hearts show up instead of just a number? I have included pictures of my code below...
  12. T

    How to make changes on an object when another object is clicked on?

    hi In game maker studio 1, I want to make some changes on object A when the user clicks on object B. but I don't know how to define the events on these two objects. any suggestions will be appreciated.
  13. 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...
  14. D

    (Solved) How to remove sprites/objects from room?

    I have a sprites/objects in a room that I cant double click or right click to remove it. Any advice?
  15. ColinTheGamer

    Need Help With Coding Weapon Movement With Player

    Hello, I'm currently having and issue with my weapon not following me properly. It follows me as I move and fires correctly, but there's a delay when it follows me that makes it look like it's floating in front of me rather than being held by me. The code I used is very simple, I'll post it...
  16. X

    GMS 2.3+ Override a function of a parent object in the child object.

    Hello everybody, I've quite a little diffculty on something. Here is the recap : I have an object obj_aaa_par with a function in his create event : function generic_func(_var) constructor { obj_idx = _var.object_index; x = _var.x; y = _var.y; name = _var.name; } This...
  17. xDGameStudios

    GML [TEXT TUTORIAL] object.variable vs global.variable vs globalvar/macro structs

    GM Version: All Target Platform: Windows / All Download: n/a Links: n/a [PROBLEM] What is the difference between object.variable, global.variable and what are globalvar macros? When should I use one of the other?! [EXPLANATION] The first thing that we need to understand is that we are trying...
  18. ASOBU

    GMS 2.3+ Grid System with FriendlyCosmonaut [P8]

    thank you open this thread. I m bothering to an error that object Crops_system's roomWidth and roomHeight in Room_start. Allow me to use odd English. Now I reference from FriendlyCosmonaut Part8. I don't have any idea to solve the error aleady. oCrops_system...
  19. S

    GMS 2 Defining object depth by creation order

    hi I'm working on a pen&paper helper thingy that creates objects upon pressing a button (like map object;walls etc.). It's crucial that the last created object is overlapping all previously created objects and I dont know how to get that working. Sorting the depth by y-value makes no sense, I...
  20. L

    Object keeps respawning

    I got a textbox system here, but I got a problem that when the textbox destroys itself, it creates itself again due to this in the step event of the person I'm talking to: (KeyInteract = vk_space) if(!instance_exists(obj_textbox)){ if(place_meeting(x, y, obj_player)){...
Top