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 {...
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...
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...
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...
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...
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?
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...
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){...
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...
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...
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 <...
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 =...
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...
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...
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:).
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...
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...
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...
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...