• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Live variable shower

P

Pasgru

Guest
Hey,
is there a way to show the values of variables live while the game runs?
 
M

mochipon

Guest
You can make an object (or use another object, preferably your UI or HUD objects) and put some stuff into the draw event.
Some things like draw_text(x,y,string) Then of course if you have a real number that you want to display, you need to convert it to a string first by just putting string(bla) as an argument for the draw_text function.

Drawing like this is also useful because it allows you to visualize things better. For example, if you use collision lines, you can draw these lines out to get a better feel for things. You just put the same coordinates in that you use for collision_line into draw_line
 
P

Pasgru

Guest
You can make an object (or use another object, preferably your UI or HUD objects) and put some stuff into the draw event.
Some things like draw_text(x,y,string) Then of course if you have a real number that you want to display, you need to convert it to a string first by just putting string(bla) as an argument for the draw_text function.

Drawing like this is also useful because it allows you to visualize things better. For example, if you use collision lines, you can draw these lines out to get a better feel for things. You just put the same coordinates in that you use for collision_line into draw_line
Thank you if I ever need collision lines I will use this
 

Tthecreator

Your Creator!
What you want to do is right click on the blue bar, Then in the menu under "Set Type" Choose "All instances" to get a list of all instances, and show their variables. (To show all variables you will have to press the little + icon.)
 
Top