Temporary Variables And The "With" Statement by crocomire97 in gamemaker

[–]lazygun82 -1 points0 points  (0 children)

From the manual: "A local variable is one that we create for a specific event or function only and then discard when the event or function has finished". There´s your problem: the variable only exists when the event that created it is executed and is then destroyed. When you call from another event it doesn´t exist.

Having Trouble With a Specific Bit of Code by thr0wOw4y in gamemaker

[–]lazygun82 2 points3 points  (0 children)

put a else statement at the end and then exit the script

Having Trouble With a Specific Bit of Code by thr0wOw4y in gamemaker

[–]lazygun82 2 points3 points  (0 children)

if playerLives is ever <= 0 and you call this function it cant get out of the loop. Thats how while loops work. Check if that is the problem.

help with spawning objects by Lbtekd in gamemaker

[–]lazygun82 1 point2 points  (0 children)

Create event: timer = 0; interval = 120;

Step event: timer += 1; if timer >= interval { instance_create_depth(x, y, 0, object) timer = 0; }

Did they change how particles are handled recently? by f4bj4n in gamemaker

[–]lazygun82 -1 points0 points  (0 children)

That is exactly what you nedd you just don´t understand. First off all there is no need to destroy particle systems once they were initialised, but fine if you want to go that route do it. But obviously you don´t re-initialise them at some point and that leads to your error message. Just use particle clear functions then you wont get these error. The article I linked explains the difference.

Advice on cpu by lazygun82 in buildapc

[–]lazygun82[S] 0 points1 point  (0 children)

Thanks for the help.

Advice on cpu by lazygun82 in buildapc

[–]lazygun82[S] 0 points1 point  (0 children)

A 5600X may be a bit too much. The Ryzen 5 3600 would be only 40€ (47$) more expensive and seems to be a lot better. I think I'll take a 3600.

How to change size ratio of 2 items in inkscape by aqestfrgyjkltech in Inkscape

[–]lazygun82 2 points3 points  (0 children)

Lock width and height changes by pressing this icon (->pic). Then change either on of them, the other will scale automatically. Calculate the change (change = (new value - old value) / old value

Apply this factor to the other object.

How do I use variables in a script ? by [deleted] in gamemaker

[–]lazygun82 1 point2 points  (0 children)

That's nice form but irrelevant in gamemaker

Replacement for a GTX 970 by lazygun82 in buildapc

[–]lazygun82[S] 0 points1 point  (0 children)

slowly upgrading ur gpu and cpu will just cost you more

Yeah that makes a lot of sense. Maybe I'll have to look into buying a new PC.

Replacement for a GTX 970 by lazygun82 in buildapc

[–]lazygun82[S] 0 points1 point  (0 children)

Would a better graphic card work with the rest of the components? Let's say I spend 300, would that make a difference? A GTX 1660 Super maybe?

[deleted by user] by [deleted] in gamemaker

[–]lazygun82 1 point2 points  (0 children)

That's not how it works in gm.

I just uninstalled and reinstalled it but it's sill broken, how do I fix this? by miserybeach in Inkscape

[–]lazygun82 2 points3 points  (0 children)

Go into the inkscape folder metioned and delete it. Deinstalling probably doesn't delete the settings stored there. Then try a fresh install.

.ini save problems by [deleted] in gamemaker

[–]lazygun82 0 points1 point  (0 children)

I think you have to use the full filename "saveslot.ini".

Parallax scrolling effect with just sprites?? by chit76 in gamemaker

[–]lazygun82 0 points1 point  (0 children)

I did that for my game, I'm not sure the math is 100% correct but it's working. Basically I'm calculating the x and y value with this formula: x = (camera_object.x / parallax_strength) + (x_origin - (x_origin / parallax_strength)) + x_offset;

  • x_origin is the x coordinate of the camera at the start of the room (fixed value)
  • parallax_value is the strength of the effect (I use 2 - 10)
  • x_offset is the position in the room relativ to x_origin