#how to create a translation system at 4x
1 messages · Page 1 of 1 (latest)
that’s easy
thanks(i am dumb)
heres some things i would recommend to change about it
1 make the language vars a singular var by using numbers (0 = english, 1 = portuguese, etc)
2 don't use infinite loops unless the player can change the language in the current scenario but in that case just add keep waits that check if the language var has changed because if not then it will make the game lose performance depending on how many translations are being ran
Thanks
Too much to remember just make it text variable with language name and idk how 4x works but i believe that using inf loops is the way to go of make it really conditional if it loses performance some complex ahh script idk
Not really too much to remember since you can use comments as a helper or use a notepad if you want and also it loses performance because of wasting resources on something that doesn't change anything (Will do a significant impact if too much text is added) which is why keep waits should be added to stop it when it isn't needed
I actually fixed a lot of fps drops thanks to keep waits
How to use keep waits? Cus like my games use a LOT of infinite loops and the only time its partially laggy is when a lot of objects are loaded too fast like when zooming out🤷
Eh depends a little on the script but will give general improvements (keep waits are pretty self explanatory, they keep wait until a condition is met)
Ik but idk how it could replace inf loops
I don't think that was really what i meant, i mean infinite loops could be replaced with a keep wait on certain occasions
Ok
But waits are really glitchy a keep loop with nothing in it wont do anything but wont Glitch out
4x fixed it
And the glitches don't even do anything to the game because it's normal for something to crash if you are running it on a non existent object
Saving for later, thx, I needed it