I wrote a script for my Execute Statement extension which allows me to read the entire contents of a VBScript text file. It works in GMStuido 1.4 and 2. But for whatever reason I can't get it working in GM 8.1. It's obvious legacy GM can do this too, but needs to be done slightly different in...
I am trying to make a password system for unlocking a character, but it isn't working.
In the Button's Create Event:
password = "";
In the Button's Left Pressed Event:
password = get_string_async("Enter a Password","");
if password != ""{
if password = "Zoroark"{
if...
I thought this code would have worked but it didn't, can someone please help me with the right way to do it.
show_message("Level Status: "+room_caption+"#Coins Remaining: " +instance_number(Coin)+"#Fuel" + health);
I have a new problem. The text for a certain variable won't show up on my screen. I have the text set to show up at my character sprite's origin, but it does not appear. The room background is blue by the way.
step event:
var hinput_ = keyboard_check(vk_right) - keyboard_check(vk_left);
var...
Hi...
Is there any way to combine names into one?
Like say... var thing = 2
How do I make the object name cited be garden_door_2 named that in a statement just because thing = 2 ?
Like... ("obj_garden_door_" + thing) make it's name
Trying to make a bunch of repetitive code more efficient.
Make...
Hello!
I'm making a little survival/adventure game and I think I will need to display a lot of different phrases... they will be displayed when the player TRIGGERS a certain position or moment. But I dont want to create a lot of objects for evey string I need to display.
What is easiest and...
Is it possible to unstring a string variable? I am making a list of 3D array variables. For example:
///array list
MaxStuff[room_Russia1]=4 //number of files to load
//type of asset
File[room_Russia1,-1,1]="bg"
File[room_Russia1,-1,2]="bg"
File[room_Russia1,-1,3]="bg"...
Again... but this time I'm 100% sure it's supposed to retrieve exactly what I tell it to retrieve. Getting this error:
And essentially here, I'm supposed to have the code retrieve a string value. This string value is stored upon a client joining the server, for each client, it's even generated...
Hello all,
I've started learning about creating a json file and decoding the contents. I have a column that contains a variable name, eg. "obj_player.expr". How do I convert the string from the file to the actual variable? Asset_get_index doesn't seem to work.
Thanks!
Essentially, you type in a string of characters in text boxes. There are two variables being used, both of which are, at the beginning, declared as strings. At the end of it all, only one of them gets sent off to a script, but even then, both are strings, always were, always will be. Yet, for...
Game Maker: Marketplace
Itch.io
ZCrypt is an encryption/decryption library for Game Maker: Studio 2 / 1.4.
The scripts are documented and easy to use! It uses a custom encryption algorithm that I made.
ZCrypt can encrypt/decrypt:
Strings
Text Files
Data Structures
Buffers
ZCrypt contains...
How do I put a txt file into a buffer then read specific lines from it?
(eg. like how file_text_open_read() and file_text_readln() do without a buffer)
I need to read strings with both numbers, and letters then feed it to a variable for display. Also I want to be able to add lines together in...
I've come to understand networking a bit better, thanks to one particularly helpful user (Tsa05). Since, I'm not sure whether the previous topic concerning networking would still be relevant, I thought I'd create this to tackle this specific issue specifically. Call me impatient, but I'd rather...
Demo: https://1drv.ms/u/s!AppH38QcoEBfiKVFbF-SFrlkQCoQbQ
Poor input boxes make your game look and feel unprofessional, and can ruin the important first impression of a player. But they're a pain to program properly. With this text input extension you can avoid dozens of hours of UI programming...
I am trying to make it so the game makes objects based on the string. I want to have the object load like:
obj_(string) where I have obj_00, obj_01, etc.
I am using Game Maker Studio 1.4
Two problems; if I have this code, I will be able to:
* Type by pressing keys
* Delete by pressing backspace
* Delete by holding down backspace
///Typing code
//Checks whether this text box is selected
if self.selected == true
{
//Keys held down
if keyboard_check(keys_allowed) &&...
Howdy All!
So, I have a quick design question regarding the storage of lots of strings for my game. And I'm talking like... 60K words-worth of strings that pop up in separate pages. Now, I've dabbled in storing them in files, but loading and processing them is kind of a pain. So, ignorant as...
When reading from a txt file is it possible to read only a certain number of characters from a line copy that part only then later (on a different frame) start reading from that line at the place you stopped and copy that part only. This would be to prevent slow down if a line was excessively...
I'm working on textbox that allows for different colored text in one message. I draw each letter one by one and repeatedly loop each frame. I want to be able to change part of a string's color by writing something like /c_red/ in the text and checking for /c and then getting the rest of the...