Hey, I'm a beginner to GameMaker and I'm having some difficulty with two of my objects changing their sprite because of their parent object. I have the child objects (the boots) change their sprites depending on the direction the character moves. I have also set the parent object's (ship body)...
Ok here is a video and please dont punish me for accent and all aboat my english i know its terrible.
Here is first code for sticking object :
Here is code from weapon:
Here is code for moving and shifting:
Thank you for reading and answers.
HI everyone. I am not so cool at gamemaker, so need your help. In my game i have objects that move with other ones, for example spaceship that is flying and turret that is on it and can rotate and shoot. Same thing with many other objects, but when one object move another object move not...
I have an object with 3 fixtures (don't know if that counts).
It has physics enabled and 0 density because I need it to stay still on screen.
I'm trying to use "physics_apply_force(x, y, 0, -15)" on "Left pressed" on it. Doesn't budge.
Is this the way things should work or am I doing something...
Hello everybody
I am quite new to game maker studio so I wanna ask you something.
How do I transfer my object (player) from one room to another along with some other objects too.
Any help please.
Thank you
So as the title states I need help getting it so when a player collides with another object it decreases and increases another objects speed. So far I was able to get it to do both increase and decrease an objects speed, but it works weirdly. So I want it so after a few seconds the boost in the...
Hello! So I have a problem with my enemies spawning on items and each other, and not being able to move. Can someone show me the code to check if there is not an object in the way before spawning the enemy? I know it’s simple, but I’m self taught. Thanks for your time!
Hi, so I'm in the progress of trying to master the Gamer Maker 2 programming language. Recently I stumbled across a little problem. What I'm trying to accomplish, is moving an item object to the center of another object, whereafter a series of events will trigger when the two objects are on top...
The movement in the game I'm working on appears to be bugged. It will not let me move right or left unless I've jumped first. If I start moving, I can keep moving, though sometimes changing the direction makes it stuck too. Jumping works good and as intended, its just sometimes the movement...
Hey all! A quick question: is there away (or a way to work around of it) to have 2 of the same objects in a room but have different variables? For example:
Messageblock 1: var message = "Welcome! The movements are simple. Just walk with the arrow keys!"
Messageblock 2: var message = "There is...
So I looked around and I have seen alot of how do I make my object follow the mouse threads. but my question is: how can I make my mouse follow an object.
I need this so I can use a custom cursor object that acts like a mouse but I can't find any functions that let you change the mouse position...
Need help :/ I get stuck. I don't know why. I mean, the width and height on the room are 640 x 480, snapped as 16x16 and the objets as player, enemies, blocks are 32x32. In the left side I get stuck but in the right side is correct. Someone help?
But in right side I don't get stuck.
But I...
Hi I wrote this code voor a topography game:
currentquestion = object_get_sprite(obj_topoquest);
if((currentquestion == argument0 ||currentquestion == argument1) && global.vraagtopo <9){
ding = random_range(0, 23);
switch(ding){
case 0: with(obj_topoquest) sprite_index = spr_drenthevr1...
Hello,
I have a problem when i creat lot of object he say " You have reached the limits of GameMakerStudio 2 Trials for "Object"
its normal ? why ? and i can deblock this ( i think but who ? )
In my game I want the Star Wars Jawa you play as to be able to crouch down when you use the Left Shift key. All the movement and everything works good, including the jumping and switching to crouch mode, except when he stands back up the only thing he can do is jump. I have it set to when L...
Using GM2
Simple question (I hope):
Similar to how you make an array change in the script and also change it's value in the object calling the script, can the same thing be done for a variable? My question lies in this example code:
<object>
scr_test(my_array, my_variable);
<scr_test>
var...
I am curious if there is a way to swap out objects that are placed in a room. For example, if I put 7 floor piece objects in a room and then wish to switch 4 of them with a spiked floor object, can I select an instance and swap it to a different object?
For any video editors a perfect example...
Hello, i'm in a bit of trouble. This is a big project file I don't wanna mess around with.
When I start my game, it happens (one in ten times for example) that GameMaker Studio randomly spawns one or two objects from the ressource tree, with no reason ! No code is calling it, and sometimes it's...