Zuljaras
Member
So I decided to port my project to GMS2 from GMS 1.4.
Everything runs as expected and I did not have to do any changes except some type errors (no idea where those came from!)
.
HOWEVER I want to convert my old functions to the new ones and I do not want to use the compatibility scripts.
Here is a sample:
I read the obsolete functions list and the new functions list but I did not find the equivalents of those.
Could anyone tell me how did you managed to get those things to work in your projects?
Is it even possible to get the exact same thing but in the new functions?!
Thanks in advance!
Everything runs as expected and I did not have to do any changes except some type errors (no idea where those came from!)
.
HOWEVER I want to convert my old functions to the new ones and I do not want to use the compatibility scripts.
Here is a sample:
GML:
var p = application_get_position();
var px = p[0];
var py = p[1];
var pw = p[2] - p[0];
var ph = p[3] - p[1];
global.mx = ((mouse_x - __view_get( e__VW.XView, 0 )) / __view_get( e__VW.WView, 0 ) * pw + px - global.Xoffset) / surface_get_width(application_surface) * __view_get( e__VW.WView, 0 ) + __view_get( e__VW.XView, 0 );
global.my = ((mouse_y - __view_get( e__VW.YView, 0 )) / __view_get( e__VW.HView, 0 ) * ph + py - global.Yoffset) / surface_get_height(application_surface) * __view_get( e__VW.HView, 0 ) + __view_get( e__VW.YView, 0 );
I read the obsolete functions list and the new functions list but I did not find the equivalents of those.
Could anyone tell me how did you managed to get those things to work in your projects?
Is it even possible to get the exact same thing but in the new functions?!
Thanks in advance!