Thanks! that's what I figured, i'm just needing it for a debug console, so speed isn't really an issue. I'll check out the marketplace.It was possible back to GM 8.1 when the code was interpreted, but it's not possible now since Studio introduced compiled code.
Can't remember the name, but there are a couple of extensions if you look around the forum and marketplace that supposedly allow you to do what you want, although I'm not really sure how that is achieved, it may be a really slow process
I'm creating a command line basically. I have a text parser that can recognize function names, reals, objects, etc. Problem is, say with the function instance_create(x, y, obj_whatever) it works fine like instance_create(100, 100, obj_player); but with something like instance_create(mouse_x, mouse_y, obj_player); I would need a way of converting the strings of mouse_x/mouse_y to the actual values of mouse_x/mouse_y. I could do what Bingdom said and use a ds_map to store the values of the built-in variables and constantly update them, but I was just looking for a simpler way if that makes senseJust out of curiosity, why not use the game maker debugger?
I know , the issue is taking a string like "mouse_x" or "obj_player.hp" and turning that string into the real value of the variable. Which is basically impossible in studio from what I've gathered.Oh, in that case just use real().
Edit:
Nevermind, that wouldn't work
Tip:
If you want to draw text with strings mixed with numbers, do something like this:
Code:draw_text(0,0,"Mouse_x: " + string(mouse_x));