Edited by garrlker, 19 March 2011 - 11:23 PM.
GM 8.1 "tiny" feature request...
#161
Posted 19 March 2011 - 11:20 PM
#162
Posted 19 March 2011 - 11:29 PM
By "opposite", you mean the inverse?I don't know if these will take long so let's see.
A function that will take a color and return the opposite. I've needed one before, but still can't figure out the way to do it in GML but I know it can be.
And set certain objects and rescources to a ctrl+ whatever key. For instance I set obj_player to ctrl+p, save my game and close. Next day I log back on and hit ctrl+p and my object pops back up without having to dig through folders. It's not really a needed function but could help some people. I certainly wouldn't mind.
/* color_get_inverse(col) */ var r,g,b; r=color_get_red(argument0); g=color_get_green(argument0); b=color_get_blue(argument0); return make_color_rgb(255-r, 255-g, 255-b);
-IMP
#163
Posted 19 March 2011 - 11:31 PM
I have 2 suggestions cause I'm a rebel. I want screen_redraw_part(x,y,w,h) and support for .apng
-Blopit
Edited by blopit, 19 March 2011 - 11:32 PM.
#164
Posted 19 March 2011 - 11:53 PM
If you mean the inverted color, it should be pretty simple:I don't know if these will take long so let's see.
A function that will take a color and return the opposite. I've needed one before, but still can't figure out the way to do it in GML but I know it can be.
inverted_color=$FFFFFF-color
#165
Posted 19 March 2011 - 11:58 PM
1) A function to check if a string could be converted to a real without error - The real() function nearly does this anyway.
2) Setting the working directory of files when executing.
3) Simple window focus/foreground functions.
EDIT: There are going to be way to many suggestions by morning for mike to look at them - I hope he is still up!
EDIT 2: Oh, sorry - I forgot the 1 per customer rule... Well, seems kind of stupid to remove them... Just ignore the 2 harder ones. :-)
Edited by Docopoper, 20 March 2011 - 12:10 AM.
#166
Posted 20 March 2011 - 12:15 AM
This works too, don't know if it's faster, slower, or the same.If you mean the inverted color, it should be pretty simple:
I don't know if these will take long so let's see.
A function that will take a color and return the opposite. I've needed one before, but still can't figure out the way to do it in GML but I know it can be.inverted_color=$FFFFFF-color
inverted_color = color ^ c_white;
Edited by Big J, 20 March 2011 - 12:16 AM.
#167
Posted 20 March 2011 - 12:16 AM
Directory_get_files(ARRAY,DIRECTORY);
Recursively adds files to an array from directory.
#168
Posted 20 March 2011 - 12:24 AM
Ok, I read about the first 3 pages and gave up, so I hope these are new:
1) A function to check if a string could be converted to a real without error - The real() function nearly does this anyway.
2) Setting the working directory of files when executing.
3) Simple window focus/foreground functions.
EDIT: There are going to be way to many suggestions by morning for mike to look at them - I hope he is still up!
EDIT 2: Oh, sorry - I forgot the 1 per customer rule... Well, seems kind of stupid to remove them... Just ignore the 2 harder ones. :-)
1) isreal()/isstring() should suit your purposes.
2) That would defeat the purpose of working_directory; that's where the program is. >_<
3) window_set_* functions should be good.
#169
Posted 20 March 2011 - 12:32 AM
Nope, if you "open with" on a file, the working directory is that file. And there are other cases where the working directory changes (shortcuts?).2) That would defeat the purpose of working_directory; that's where the program is. >_<
Though I think the underlying request is that dll/ini files don't have to be in the working directory's folder.
Edited by paul23, 20 March 2011 - 12:33 AM.
#170
Posted 20 March 2011 - 12:35 AM
Ok, I read about the first 3 pages and gave up, so I hope these are new:
1) A function to check if a string could be converted to a real without error - The real() function nearly does this anyway.
2) Setting the working directory of files when executing.
3) Simple window focus/foreground functions.
EDIT: There are going to be way to many suggestions by morning for mike to look at them - I hope he is still up!
EDIT 2: Oh, sorry - I forgot the 1 per customer rule... Well, seems kind of stupid to remove them... Just ignore the 2 harder ones. :-)
1) isreal()/isstring() should suit your purposes.
2) That would defeat the purpose of working_directory; that's where the program is. >_<
3) window_set_* functions should be good.
1) isreal()/isstring() are different - they check if a variable is a real/string - I am talking about checking if a string would make the real() function throw an error if you put it in:
ex: real("hello") would show an error - so this function should tell you that it will.
2) The working directory is where the game is stored - the problem is that if you make GM execute a program that is in a different directory then it's working_directory is set to GM's directory.
I had this problem when trying to execute a batch file that executes more batch files in it's own folder - the batch file couldn't find the others because it thought it was in GM's folder not it's own.
Edited by Docopoper, 20 March 2011 - 12:36 AM.
#173
Posted 20 March 2011 - 01:55 AM
#174
Posted 20 March 2011 - 02:23 AM
GameGeisha
Edit: One more extension to this idea --- if the extension of the file dragged into the window is not recognized as a picture, a sound or a GM-related filetype, add it as an include file. Bring up the include file menu to let the user know it has been added.
Edited by GameGeisha, 20 March 2011 - 02:43 AM.
#175
Posted 20 March 2011 - 02:28 AM
#176
Posted 20 March 2011 - 03:34 AM
Would you like me to add it for you?
#177
Posted 20 March 2011 - 04:21 AM
That is all
#179
Posted 20 March 2011 - 04:36 AM
Null as in not set. Never been assigned to, ignored script parameters, etc. It already partially exists since some values can return false for both is_real() and is_string().
:OOOOOOO
Forgot about something, this in GML.
I don't think you can have a null in GM, so that seems a little pointless, unless you're using 'var fudiafudisa;', in which case you're setting it in the script/code.
#180
Posted 20 March 2011 - 04:41 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



This topic is locked








