Hellow everyone I'm having a strange issue here.
In my draw event I have this code :
dest = draw_sprite(sdestination, -1, proche.x, proche.y)
dest.image_speed = .2
This second line gives me the error:
Unable to find any instance for object index '0' name 'map'
at gml_Script_deplace (line 7)...
So basically I have a memory leak, 20% + when drawing my HUDS.
Just a simple code in DRAW EVENT:
draw_set_color(c_white);
draw_set_font(1);
draw_sprite(healthbar2, PlayerWorld.hp, view_xview[0] +50, view_yview[0]+30);
However, when I run game I am averaging about 20% + memory used.
Any...
When a line or rectangle is drawn in the Draw GUI event , they all appear to be 2px wide and transparent.
Are they drawing on subpixels and being downsampled wrong? How can I get them to appear as they should? (Crisp 1px wide lines).
If it helps all of my lines that are drawn in the normal...
Using draw_getpixel(x,y) is working fine on desktop but returns (mostly) empty on my tablet.
It *sometimes* seems to be picking from 1/10th of the screen left from where I touched, which leads me to believe its something to do with scaling, but turning that off didn't change the result.
I read...
I'm using keyboard_string and assigning it to a variable then drawing it to the screen. On the windows platform when I type @(Shift + 2) the @ symbol works fine but when I do the same on the html platform the symbol reads as a single quote('). If I press Shift + tilde(~) then it creates the @...
Hello, Noob question here!
Why the objects in the game become invisible if I add to them a DRAW EVENT?
It's there a way to not make them invisible? Because in other way I need to create an empty object (without a sprite) only for them... I want to avoid to add a lot of empty objects...
I'm working on a project and I've noticed that if I change the size of the window, none of my GUI elements are in their proper place. I'm not sure if I fully understand how the GUI layer works, so I don't know where to begin to derive some sort of scaling formula. Is there a function to solve...
Hello, this is more of a question to the developers about the built in variable view_surface_id and why it works the way it does & if there is a possibility of changing it. Why is it that view_surface_id seems to only be able to be changed once per step? If I assign any number of surfaces as the...
Hello, I'm just looking for any information, tips or tricks when using view_surface_id. I've gone through the documentation but can't seem to get any result other than a black screen.
What I am trying to do with this function and what the documentation seems to imply you can do is draw sprites...
Hello Everyone,
I need help with the my game
The text is not printing to the screen!
Please help
if you need more info please ask!:):D
scr_varible
global.dif = 0;
continue_error = false
scr_draw_error_text_box
draw_set_alpha(.5)...
Hey everyone,
So I know that the draw functions such as draw_set_halign() and draw_set_valign() only need to be applied once because they apply to all text.
But is there any way to align certain drawn text differently than the rest?
I've tried outright just calling two different alignments...
Hey,
So I'm working on a fighting game that someone else started.
And I'm currently having a problem, where ALL of my draw events are merging together and happening at the same time...
I have a controller that draws the character select boxes and character names in the character select room...
What I'm trying to do is simply: Let the portrait change whenever the sentence has reached its end and I press "Z".
Initially when I pressed Z, even before the sentence finished, the portraits would change before the sentence was finished.
if keyboard_check_pressed(ord("Z")) {
por_current +=...
I'm using the GUI event so that I can draw HUDs etc at a greater resolution than the game. My actual game is 384x216. What I'm trying to do is use:
draw_background_stretched(bg_1,0,0,display_get_gui_width(),background_get_height(bg_1))
This is in order to set a background at a higher...
Hi long time lurker, first time poster. Sorry if my english is not perfect.
So my problem is the time required for the draw event.
Friend pc specs are
CPU Amd FX 6300, GPU AMD Radeon HD 7800 Series, Ram8.0 GB
Friend laptop specs are
CPU i7-6700HQ CPU @ 2.60GHz, GPU GeForce GTX 1060, RAM 16 GB...
I'm not sure if i learned bad habbits from GMS1 but Im working on a small app currently using normal draw_text_colour(x,y,string,col,col,col,col,alpha) code and everytime the draw event is run, the new text is drawing over the previous state of the text and not clearing the previous text like I...
Hello everyone,
Is there a definitive answer on whether we should change the xy coordinates of objects or views/cameras and then draw, or whether we should draw first and then change the xy coordinates?
Nathan
GM Version: 1.4 thinking of upgrading to 2 soon.
Target Platform: PC
I have an object controller than draws different cards into the game. I can get the draw event to create the card but not animate it. Is it possible to make the spine animation occur through the draw event? If it is does...
hi,
for my 2.5d game i use an order table (like the dungeon demo) for the drawing order.
It works pretty well.
How can i get an extra sprite in the drawing event in front of the object sprite.
I have learned that all sprites in the draw event after the draw_self() are drawn in front of the...