detection

  1. thejosving

    GML Having problems with instance detection

    Hello! I've been having problems with instance detection between two objects. I made a drawing to explain what I want: My code is very simple. In Create I have: point[0]=noone; sight=32; In the Step event: var nearpol=instance_nearest(x,y,oPoint); if nearpol<sight { if point[0]=noone {...
  2. EvyDevy

    How to have GameMaker recognize you speaking into a mic

    I'm trying to make it so that an image changes when your microphone detects you speaking. I decided to use this add-on "Get Microphone Volume" which is on the Yoyo marketplace (can't use links). I haven't used Gamemaker in years so I'm a bit rusty and need help needing it to work. I was able to...
  3. Architheutis

    GMS2 (WIN) can´t connect with my MacBook (via GMS2s device detection)

    Hello everybody, I´m working on publishing my game app on App Store, too. But as the headline already says: Game Maker Studio 2 cannot detect my MacBookPro. Following conditions are given: - Gamemaker Studio 2 runs on my PC (WINDOWS 10 Pro) - MacBook Pro is running Catalina 10.15.6 - Both...
  4. D

    GML gamepad detection problem at room change gms 2

    Hello to all and all, before all sorry for my English I use a translator. I come to you for help, I use the joystick detection function : https://docs.yoyogames.com/index.html?page=source%2Fdadiospice%2F002_reference%2Fmouse,%20keyboard%20and%20other%20controls%2Fkeyboard%20input%2Findex.html...
  5. E

    Legacy GM problem changing sprite

    hey yall, imhaving a problem with a sprite change and collsion detection my code is down below and was wondering if anyone could help. basiclly the problem is when a drop of oil falls from the ceiling and lands in my players bucket, it should set the my score which is global.throwbucket to += 1...
  6. N

    Place Meeting and Mask Index

    I'm using place_meeting to do collisions for a side scrolling platformer. When I set the mask_index of one of the platforms to -1, the collision is still registered. What is going on?
  7. Y

    GamePad not Working

    Hello, I have a PS1 and PS2 devices with USB adaptor. I play all games and emulators with them but I'm not able to use PS1 controller on GameMaker. PS2: It works perfectly in GameMaker using Joystick functions. PS1: Not Working - It works perfect on Windows 10 Control Panel. - It works with...
  8. Y

    Legacy GM Text not showing up

    So I'm currently setting up a system that should let players use a controller in my game. however some text isn't showing up I'm using this code inside a mouse left pressed event: if(!searching && global.gamepad = -1){ searching = 1 } else if(!searching && !global.gamepad = -1){...
  9. B

    Collision Detection

    How do I detect if an object is touching another object?
  10. N

    GameMaker Bullet collision issue!

    Hi guys, i'm making a sort of roguelike game and i'm struggling with an annoying issue about bullet collisions. My game has a resolution of 1280x720 and view is set with 640x360. My sprites are 32x32, 16x16 or 64x64. I have a player that can shoots bullets with this code: I have also two solid...
  11. R

    GML [SOLVED] Help Detecting solids

    Im doing a sideview platformer, trying to get the character to walk up a slope, but the issue im having with the place_free command, if im testing for collisions on the right side of the play, place_free(x+1,y) checks the entire players right side, from top to bottom, so i decided to use the...
  12. Coded Games

    GML Hit detection not working.

    So after taking a few month break from using GameMaker to using Java instead I'm having trouble figuring why objDamagable's hp is not being decreased. objDamagable DOES have hp defined in it's create event but for some reason, it's not going down. //Trance Max Distance while (distance <...
  13. Y

    doesn't detect place_meeting

    so i'm using this script to check for the Obj_Stone. if (keyboard_check_pressed(vk_up) && Jumping == false){ physics_apply_impulse(x, y, 0, -500) Jumping = true show_debug_message("true") } if (place_meeting(x,y+1, Obj_Stone) && !place_meeting(x+1,y, Obj_Stone)){ Jumping =...
  14. X

    Legacy GM [SOLVED] Line of sight bug

    I have this really weird bug where my collision lines only sometimes detect properly. If the player is visible to the enemy, the shooting animation should be playing. I made a short video showing the bug: https://www.dropbox.com/s/xhu3bpxpm51k5un/helpPls.avi?dl=0 I can't figure out why jumping...
  15. J

    Legacy GM [SOLVED] Simple problem with RTS game.

    I'm creating a RTS Sci-fi game and I've run into a little problem. I've been working on the enemy AI and I need a variable that is set to 1(true) when the enemies enemy(the player) has a fighter ship in the range of one of the enemy ships, and its set to 0(false) when there are no...
  16. S

    Help with drawing detection

    I was trying to do something like the Halloween 2016 doodle of google but i dont get how to do the drawing detection. There you have the example https://www.google.com/doodles/halloween-2016. Thanks in advance:).
  17. S

    Enemy Detection

    I'm trying to figure out enemy detection mechanics but can't get it quite right. I have it where if the player is within a certain distance and there is no wall or obstructions, then the enemy will follow if (distance_to_object(oPlayer) <= 256) { if...
  18. D

    GML [SOLVED] Collision detection not working

    Hi! I have a problem with collision checking. I have a grid based game on which every grid cell can contain only one object. I have a player and enemies. Enemies by now are not moving and the player can move only one cell at once, either horizontally or vertically. My problem here is with...
  19. S

    Windows Make an object create an object and follow it

    I am trying to implement a vision mechanic in my game (not using distance_to_object) by using an object with the sprite of a vision cone. This is the current code for creating the cones at the start of the game. //Check if we have vision HaveVision = instance_place(x,y,oVision) if...
  20. X

    Legacy GM Ricochet Paths

    So, I've certainly seen this in certain games and you might have as well; ricochet paths. This is basically a path that a shot projectile can travel, but which is calculated by the game itself, based on the code provided (at least that's what I'm guessing it is) and the projectile obviously can...
Top