quattj
Member
I have a game project from GMS1.4. It uses a mixture of drag & drop and code.
Why is GMS2 converting my old drag & drop "if" blocks into code that looks like this?
This is a drag and drop if statement that logically should be easily converted upon import in to:
(or just left as a drag and drop object)
The "land" variable is set in the create event.
I have 531 objects, a large portion of which use drag & drop if statements around blocks of code. Currently, the converted file is a giant mess wherever these blocks are present.
Why is GMS2 converting my old drag & drop "if" blocks into code that looks like this?
Code:
var __b__;
__b__ = action_if_variable(land, 0, 0);
if __b__
{
direction += random(20)-10;
}
Code:
if (land == 0)
{
direction += random(20)-10;
}
The "land" variable is set in the create event.
I have 531 objects, a large portion of which use drag & drop if statements around blocks of code. Currently, the converted file is a giant mess wherever these blocks are present.