Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

Skipping parameter in function with commas does not work in parameter hint

A topic by castorpollux_285 created 53 days ago Views: 52 Replies: 1
Viewing posts 1 to 2

Hello,

when I skip a parameter in a function by using commas only, the parameter hint does not work. 

Example:

function(1,2,,,,,3)

It works, with using "undefined", but that is not as convenient as using commas only.

Thanks in advance!

Developer

Might have to make that

function(1,2, , , , ,3)

for now - the underlying code editor component combines same-type tokens so ,,,, isn’t 4 distinct commas, but a single comma with a string ",,,," inside.

This causes occasional oddities in parts of GMEdit that have to count punctuation, especially if the cursor is in the middle of that character sequence.