Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

moudianzi

6
Posts
1
Topics
1
Following
A member registered Nov 08, 2016

Recent community posts

Get it, thanks for the answer.

The #mfunc is useful, and i can do this with it:

#mfunc foreach(i, ins, ary) \
for (var i##__ = array_length_1d(ary), i = 0; i < i##__; i++) { var ins = ary[@ i];

var array = [100, 101, 102];

foreach (i, ins, array) 
    show_debug_message(i);
    show_debug_message(ins);
}

It's cool,  but missing a left brace.

I wonder if i can write it with the left brace just like this in some way:

#mfunc foreach(i, ins, ary){  \
for (var i##__ = array_length_1d(ary), i = 0; i < i##__; i++) { var ins = ary[@ i];

var array = [100, 101, 102];

foreach (i, ins, array)  {
    show_debug_message(i);
    show_debug_message(ins);
}

This seems to happen in the object's code page,  but not happen in the script's code page ( because ctrl+s is work for it).

And the way of "Baku" is work for it.(ctrl+s, and then switch the code page).

I'm not sure why and how it happens, it looks always happens when i use it on my computer.

And sometimes, the "close and open the code page again"  is not work for updata the "var" highlight, either.

Pressing the "ctrl+s", i had ever  tried doing this, but the problem still existed.

After i define a variable by "var",  it would not be hightligh in soon, until wait for a long time, or close the code page and then open it again.

It's it a bug ? or just i mistake some option ?  All key words hightliht for defining variable are work well except this.