Currently I have set up physics for the client. The server responds with the instance equivalent moving anywhere where the client's object goes (declaring the x and y position to be that of of the physics object), however the same case is not for rotation. Physics use phy_rotation instead of...
Quick question, since I don't want to write a whole bunch of code having these values set up and then it turning out to not work. Essentially, I want to know whether something like this:
Is that okay, or a no-go and...
This is not the first time I encountered this problem. The few times I had were just part of some random experiments with GMS 1.4 (also in GMS2). But NOW it is happening for my team's game project and its a must fix now. I cant seem to know why or what is wrong ...
I store a buffer value that...
Hello Guys ;),
I want to make a program code who allows to make a maximum value for subordinate random values.
I don't know how to explain it so i have here a example.
The subordinate random values should result 10 at least. (10 is the max value).(10 should be changeable).
Thx for the respond...
so i figured the only way to identify a specific sprite in the resourse tree wuld be with sprite_get_name()
but how do i return that string into a real value which then i wuld use to assign that sprite to an object? in the manual is suggested sprite_get_index() but such a function doesnt exist...
this is the code in a game im working on. why is it broken?
instance_nearest(x,y,action).HP += -1.5*(Weapon/action.Armour)
Hit = random(100)
if Hit = 1 then
instance_nearest(x,y,action).Nav += -0.1*(Weapon/action.Armour)
if Hit > 10 then...
No matter what this always returns a 0.
>global.valueTotal = 0;
>currentPos = draw_getpixel(xPosition, yPosition);
>global.valueTotal += colour_get_value(currentPos);
I have tested this with all the pixels from this test image.
(image will be uploaded in a moment, the upload at image button is...
Game Maker Studio 1.4.1753
When running a game and checking image_index in the step event of an object, I get a decimal value as an image index? How can that be? I cannot have 0.2 of an index in a sprite that has 6 images??? I attached a picture of the dubugger as a proof. Can someone clear...
can someone help me I'm looking for a way to slowly move a value towards another value at a set speed
I would prefer to use something that uses one line of code if that is possible
I do not want to use lerp because it has problems reaching the target value(please do not argue with me on this)...
I am going to write the code and the questions I have correspond accordingly.
Let's say I have two objects...
http_post_string(/*QUESTION 1*/, 123);
textToRead = /*QUESTION 2*/
draw_text(x, y, textToRead);
Question 1: What is an example...
So, I looked through some text file and list commands and read a bit about them. For some reason I can't figure out how to code it so that the program checks whether the 0th, 1st or whichever line has a certain text in it. I know that's not what text files are really for in and of themselves...
I have a question that's been lingering inside my head for some time now. I'll try to put this in layman's terms because I don't know how ask it any other way.
Suppose you have 3 instances of a certain object (we'll call it "obj_cake").
Each instance has a variable "num" and each...
So here is the problem I am having. I watched this video: GameMaker - Custom Healthbars
In the video, he explains how to make a healthbar. His healthbar went off of a health value that was maxed at 100, so he showed that you need to draw the healthbar as your health value divided by 100, making...